@@ -116,6 +116,8 @@ async def _request_copy_folders(
116116 if async_job_result .done :
117117 result = await async_job_result .result ()
118118 assert isinstance (result , AsyncJobResult )
119+ assert isinstance (result .result , dict )
120+ result .result .pop ("workbench" , None ) # remove workbench from the data
119121 return result .result
120122
121123 pytest .fail (reason = "Copy folders failed!" )
@@ -189,7 +191,6 @@ async def test_copy_folders_from_empty_project(
189191 {},
190192 nodes_map = {},
191193 )
192- data .pop ("workbench" , None ) # remove workbench from the data
193194 assert data == jsonable_encoder (dst_project )
194195 # check there is nothing in the dst project
195196 async with sqlalchemy_async_engine .connect () as conn :
@@ -269,7 +270,6 @@ async def test_copy_folders_from_valid_project_with_one_large_file(
269270 dst_project_nodes ,
270271 nodes_map = nodes_map ,
271272 )
272- data .pop ("workbench" , None ) # remove workbench from the data
273273 assert data == jsonable_encoder (
274274 await get_updated_project (sqlalchemy_async_engine , dst_project ["uuid" ])
275275 )
@@ -371,7 +371,6 @@ async def test_copy_folders_from_valid_project(
371371 dst_project_nodes ,
372372 nodes_map = nodes_map ,
373373 )
374- data .pop ("workbench" , None ) # remove workbench from the data
375374 assert data == jsonable_encoder (
376375 await get_updated_project (sqlalchemy_async_engine , dst_project ["uuid" ])
377376 )
@@ -432,9 +431,6 @@ async def _create_and_delete_folders_from_project(
432431 nodes_map = nodes_map ,
433432 client_timeout = client_timeout ,
434433 )
435-
436- data .pop ("workbench" , None ) # remove workbench from the data
437-
438434 # data should be equal to the destination project, and all store entries should point to simcore.s3
439435 # NOTE: data is jsonized where destination project is not!
440436 assert jsonable_encoder (dst_project ) == data
0 commit comments