@@ -62,13 +62,20 @@ class SessionSeedData:
6262 user_uuid : uuid .UUID | None = None
6363
6464
65+ @pytest .fixture ()
66+ def scheduling_controller_mock () -> AsyncMock :
67+ """Mock SchedulingController exposed as a fixture for test-level configuration."""
68+ return AsyncMock ()
69+
70+
6571@pytest .fixture ()
6672async def session_processors (
6773 database_engine : ExtendedAsyncSAEngine ,
6874 agent_registry : AsyncMock ,
6975 background_task_manager : BackgroundTaskManager ,
7076 error_monitor : ErrorPluginContext ,
7177 appproxy_client_pool : AsyncMock ,
78+ scheduling_controller_mock : AsyncMock ,
7279) -> SessionProcessors :
7380 """Real SessionProcessors with real SessionService and SessionRepository."""
7481 session_repo = SessionRepository (database_engine )
@@ -80,7 +87,7 @@ async def session_processors(
8087 error_monitor = error_monitor ,
8188 idle_checker_host = AsyncMock (),
8289 session_repository = session_repo ,
83- scheduling_controller = AsyncMock () ,
90+ scheduling_controller = scheduling_controller_mock ,
8491 appproxy_client_pool = appproxy_client_pool ,
8592 )
8693 service = SessionService (args )
0 commit comments