7070from tenacity .wait import wait_fixed
7171
7272pytest_simcore_core_services_selection = [
73- "catalog" ,
74- "director-v2" ,
75- "director" ,
76- "migration" ,
7773 "postgres" ,
7874 "rabbit" ,
7975 "redis" ,
80- "storage" ,
8176]
8277
8378pytest_simcore_ops_services_selection = [
84- "minio" ,
8579 "redis-commander" ,
8680]
8781
@@ -380,6 +374,33 @@ async def test_progress_non_computational_workflow(
380374 await _assert_handler_not_called (mock_progress_handler )
381375
382376
377+ @pytest .fixture
378+ async def mocked_dynamic_services_interface (
379+ mocker : MockerFixture ,
380+ ) -> dict [str , mock .MagicMock ]:
381+ mock = {}
382+
383+ for func_name in (
384+ "list_dynamic_services" ,
385+ "get_dynamic_service" ,
386+ "run_dynamic_service" ,
387+ "stop_dynamic_service" ,
388+ ):
389+ name = f"dynamic_scheduler.api.{ func_name } "
390+ mock [name ] = mocker .patch (
391+ f"simcore_service_webserver.{ name } " ,
392+ autospec = True ,
393+ return_value = {},
394+ )
395+
396+ mock ["director_v2.api.create_or_update_pipeline" ] = mocker .patch (
397+ "simcore_service_webserver.director_v2.director_v2_service.create_or_update_pipeline" ,
398+ autospec = True ,
399+ return_value = None ,
400+ )
401+ return mock
402+
403+
383404@pytest .mark .parametrize ("user_role" , [UserRole .GUEST ], ids = str )
384405@pytest .mark .parametrize (
385406 "sender_same_user_id" , [True , False ], ids = lambda id_ : f"same_sender_id={ id_ } "
@@ -388,6 +409,7 @@ async def test_progress_non_computational_workflow(
388409 "subscribe_to_logs" , [True , False ], ids = lambda id_ : f"subscribed={ id_ } "
389410)
390411async def test_progress_computational_workflow (
412+ mocked_dynamic_services_interface ,
391413 client : TestClient ,
392414 rabbitmq_publisher : RabbitMQClient ,
393415 user_project : ProjectDict ,
0 commit comments