Skip to content

task_scheduler_service_locator

Scope: function | Returns: DependencyContainer

The task_scheduler_service_locator fixture bootstraps and sets the global service locator with the task scheduler's component registrations. Use it in tests that exercise task scheduling behavior.

Basic usage

@pytest.mark.usefixtures("task_scheduler_service_locator")
def test_task_is_scheduled():
    ...