@@ -193,13 +193,13 @@ async def test_start_empty_computation_is_refused(
193193 async_client : httpx .AsyncClient ,
194194 create_registered_user : Callable ,
195195 with_product : dict [str , Any ],
196- project : Callable [..., Awaitable [ProjectAtDB ]],
196+ create_project : Callable [..., Awaitable [ProjectAtDB ]],
197197 osparc_product_name : str ,
198198 osparc_product_api_base_url : str ,
199199 create_pipeline : Callable [..., Awaitable [ComputationGet ]],
200200):
201201 user = create_registered_user ()
202- empty_project = await project (user )
202+ empty_project = await create_project (user )
203203 with pytest .raises (
204204 httpx .HTTPStatusError , match = f"{ status .HTTP_422_UNPROCESSABLE_ENTITY } "
205205 ):
@@ -399,7 +399,7 @@ async def test_run_partial_computation(
399399 async_client : httpx .AsyncClient ,
400400 create_registered_user : Callable ,
401401 with_product : dict [str , Any ],
402- project : Callable [..., Awaitable [ProjectAtDB ]],
402+ create_project : Callable [..., Awaitable [ProjectAtDB ]],
403403 update_project_workbench_with_comp_tasks : Callable ,
404404 fake_workbench_without_outputs : dict [str , Any ],
405405 params : PartialComputationParams ,
@@ -409,7 +409,7 @@ async def test_run_partial_computation(
409409):
410410 user = create_registered_user ()
411411 await wait_for_catalog_service (user ["id" ], osparc_product_name )
412- sleepers_project : ProjectAtDB = await project (
412+ sleepers_project : ProjectAtDB = await create_project (
413413 user , workbench = fake_workbench_without_outputs
414414 )
415415
@@ -552,7 +552,7 @@ async def test_run_computation(
552552 async_client : httpx .AsyncClient ,
553553 create_registered_user : Callable ,
554554 with_product : dict [str , Any ],
555- project : Callable [..., Awaitable [ProjectAtDB ]],
555+ create_project : Callable [..., Awaitable [ProjectAtDB ]],
556556 fake_workbench_without_outputs : dict [str , Any ],
557557 update_project_workbench_with_comp_tasks : Callable ,
558558 fake_workbench_computational_pipeline_details : PipelineDetails ,
@@ -563,7 +563,9 @@ async def test_run_computation(
563563):
564564 user = create_registered_user ()
565565 await wait_for_catalog_service (user ["id" ], osparc_product_name )
566- sleepers_project = await project (user , workbench = fake_workbench_without_outputs )
566+ sleepers_project = await create_project (
567+ user , workbench = fake_workbench_without_outputs
568+ )
567569 # send a valid project with sleepers
568570 task_out = await create_pipeline (
569571 async_client ,
@@ -671,7 +673,7 @@ async def test_abort_computation(
671673 async_client : httpx .AsyncClient ,
672674 create_registered_user : Callable ,
673675 with_product : dict [str , Any ],
674- project : Callable [..., Awaitable [ProjectAtDB ]],
676+ create_project : Callable [..., Awaitable [ProjectAtDB ]],
675677 fake_workbench_without_outputs : dict [str , Any ],
676678 fake_workbench_computational_pipeline_details : PipelineDetails ,
677679 osparc_product_name : str ,
@@ -685,7 +687,9 @@ async def test_abort_computation(
685687 node ["inputs" ].setdefault ("in_2" , 120 )
686688 if not isinstance (node ["inputs" ]["in_2" ], dict ):
687689 node ["inputs" ]["in_2" ] = 120
688- sleepers_project = await project (user , workbench = fake_workbench_without_outputs )
690+ sleepers_project = await create_project (
691+ user , workbench = fake_workbench_without_outputs
692+ )
689693 # send a valid project with sleepers
690694 task_out = await create_pipeline (
691695 async_client ,
@@ -751,7 +755,7 @@ async def test_update_and_delete_computation(
751755 async_client : httpx .AsyncClient ,
752756 create_registered_user : Callable ,
753757 with_product : dict [str , Any ],
754- project : Callable [..., Awaitable [ProjectAtDB ]],
758+ create_project : Callable [..., Awaitable [ProjectAtDB ]],
755759 fake_workbench_without_outputs : dict [str , Any ],
756760 fake_workbench_computational_pipeline_details_not_started : PipelineDetails ,
757761 fake_workbench_computational_pipeline_details : PipelineDetails ,
@@ -760,7 +764,9 @@ async def test_update_and_delete_computation(
760764 create_pipeline : Callable [..., Awaitable [ComputationGet ]],
761765):
762766 user = create_registered_user ()
763- sleepers_project = await project (user , workbench = fake_workbench_without_outputs )
767+ sleepers_project = await create_project (
768+ user , workbench = fake_workbench_without_outputs
769+ )
764770 # send a valid project with sleepers
765771 task_out = await create_pipeline (
766772 async_client ,
@@ -880,15 +886,15 @@ async def test_pipeline_with_no_computational_services_still_create_correct_comp
880886 async_client : httpx .AsyncClient ,
881887 create_registered_user : Callable ,
882888 with_product : dict [str , Any ],
883- project : Callable [..., Awaitable [ProjectAtDB ]],
889+ create_project : Callable [..., Awaitable [ProjectAtDB ]],
884890 jupyter_service : dict [str , Any ],
885891 osparc_product_name : str ,
886892 osparc_product_api_base_url : str ,
887893 create_pipeline : Callable [..., Awaitable [ComputationGet ]],
888894):
889895 user = create_registered_user ()
890896 # create a workbench with just a dynamic service
891- project_with_dynamic_node = await project (
897+ project_with_dynamic_node = await create_project (
892898 user ,
893899 workbench = {
894900 "39e92f80-9286-5612-85d1-639fa47ec57d" : {
@@ -927,14 +933,14 @@ async def test_pipeline_with_control_loop_made_of_dynamic_services_is_allowed(
927933 client : TestClient ,
928934 create_registered_user : Callable ,
929935 with_product : dict [str , Any ],
930- project : Callable [..., Awaitable [ProjectAtDB ]],
936+ create_project : Callable [..., Awaitable [ProjectAtDB ]],
931937 jupyter_service : dict [str , Any ],
932938 osparc_product_name : str ,
933939 osparc_product_api_base_url : str ,
934940):
935941 user = create_registered_user ()
936942 # create a workbench with just 2 dynamic service in a cycle
937- project_with_dynamic_node = await project (
943+ project_with_dynamic_node = await create_project (
938944 user ,
939945 workbench = {
940946 "39e92f80-9286-5612-85d1-639fa47ec57d" : {
@@ -999,15 +1005,15 @@ async def test_pipeline_with_cycle_containing_a_computational_service_is_forbidd
9991005 client : TestClient ,
10001006 create_registered_user : Callable ,
10011007 with_product : dict [str , Any ],
1002- project : Callable [..., Awaitable [ProjectAtDB ]],
1008+ create_project : Callable [..., Awaitable [ProjectAtDB ]],
10031009 sleeper_service : dict [str , Any ],
10041010 jupyter_service : dict [str , Any ],
10051011 osparc_product_name : str ,
10061012 osparc_product_api_base_url : str ,
10071013):
10081014 user = create_registered_user ()
10091015 # create a workbench with just 2 dynamic service in a cycle
1010- project_with_cycly_and_comp_service = await project (
1016+ project_with_cycly_and_comp_service = await create_project (
10111017 user ,
10121018 workbench = {
10131019 "39e92f80-9286-5612-85d1-639fa47ec57d" : {
@@ -1084,7 +1090,7 @@ async def test_burst_create_computations(
10841090 async_client : httpx .AsyncClient ,
10851091 create_registered_user : Callable ,
10861092 with_product : dict [str , Any ],
1087- project : Callable [..., Awaitable [ProjectAtDB ]],
1093+ create_project : Callable [..., Awaitable [ProjectAtDB ]],
10881094 fake_workbench_without_outputs : dict [str , Any ],
10891095 update_project_workbench_with_comp_tasks : Callable ,
10901096 fake_workbench_computational_pipeline_details : PipelineDetails ,
@@ -1094,8 +1100,12 @@ async def test_burst_create_computations(
10941100 create_pipeline : Callable [..., Awaitable [ComputationGet ]],
10951101):
10961102 user = create_registered_user ()
1097- sleepers_project = await project (user , workbench = fake_workbench_without_outputs )
1098- sleepers_project2 = await project (user , workbench = fake_workbench_without_outputs )
1103+ sleepers_project = await create_project (
1104+ user , workbench = fake_workbench_without_outputs
1105+ )
1106+ sleepers_project2 = await create_project (
1107+ user , workbench = fake_workbench_without_outputs
1108+ )
10991109
11001110 NUMBER_OF_CALLS = 4
11011111
0 commit comments