@@ -274,13 +274,11 @@ async def client_with_session(session_id: str) -> AsyncGenerator[TestClient]:
274274
275275
276276@pytest .fixture
277- async def client_with_project_session (
278- session_id : str , make_fmu_project_root : Callable [[Path ], Path ]
279- ) -> AsyncGenerator [TestClient ]:
277+ async def client_with_project_session (session_id : str ) -> AsyncGenerator [TestClient ]:
280278 """Returns a test client with a valid session."""
281279 session = await get_session (session_id )
282280
283- path = make_fmu_project_root ( session .user_fmu_directory .path .parent .parent )
281+ path = session .user_fmu_directory .path .parent .parent # tmp_path
284282 fmu_dir = init_fmu_directory (path )
285283 _ = await add_fmu_project_to_session (session_id , fmu_dir )
286284
@@ -290,13 +288,11 @@ async def client_with_project_session(
290288
291289
292290@pytest .fixture
293- async def client_with_smda_session (
294- session_id : str , make_fmu_project_root : Callable [[Path ], Path ]
295- ) -> AsyncGenerator [TestClient ]:
291+ async def client_with_smda_session (session_id : str ) -> AsyncGenerator [TestClient ]:
296292 """Returns a test client with a valid session."""
297293 session = await get_session (session_id )
298294
299- path = make_fmu_project_root ( session .user_fmu_directory .path .parent .parent )
295+ path = session .user_fmu_directory .path .parent .parent # tmp_path
300296 fmu_dir = init_fmu_directory (path )
301297 _ = await add_fmu_project_to_session (session_id , fmu_dir )
302298
@@ -312,9 +308,9 @@ async def client_with_smda_session(
312308
313309
314310@pytest .fixture
315- def session_tmp_path (make_fmu_project_root : Callable [[ Path ], Path ] ) -> Path :
311+ def session_tmp_path () -> Path :
316312 """Returns the tmp_path equivalent from a mocked user .fmu dir."""
317- return make_fmu_project_root ( UserFMUDirectory ().path .parent .parent )
313+ return UserFMUDirectory ().path .parent .parent
318314
319315
320316@pytest .fixture
0 commit comments