Skip to content

Commit 6ca8dd5

Browse files
committed
Mock session in ispyb as well
1 parent 7ee5377 commit 6ca8dd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/workflows/clem/test_register_preprocessing_results.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ def test_run_with_db(
200200
"murfey.workflows.register_data_collection_group.ISPyBSession",
201201
return_value=ispyb_db_session,
202202
)
203+
mocker.patch(
204+
"murfey.server.ispyb.ISPyBSession",
205+
return_value=ispyb_db_session,
206+
)
203207

204208
# Mock out the machine config used in the helper sanitisation function
205209
mock_get_machine_config = mocker.patch("murfey.workflows.clem.get_machine_config")

0 commit comments

Comments
 (0)