"""High-value edge case tests for research_scheduler module.

Covers:
- Route blueprint registration and name
"""


class TestSchedulerRouteBlueprint:
    """Test research_scheduler route blueprint."""

    def test_blueprint_name(self):
        """Blueprint has the expected name."""
        from local_deep_research.research_scheduler.routes import scheduler_bp

        assert scheduler_bp.name == "document_scheduler"

    def test_blueprint_has_url_rules(self):
        """Blueprint has registered URL rules."""
        from local_deep_research.research_scheduler.routes import scheduler_bp

        # Deferred URLs are stored in deferred_functions
        assert len(scheduler_bp.deferred_functions) > 0
