We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc0a910 commit 1d9bbc7Copy full SHA for 1d9bbc7
1 file changed
tests/workflows/clem/test_register_preprocessing_results.py
@@ -188,8 +188,12 @@ def test_run_with_db(
188
mock_get_security_config = mocker.patch("murfey.server.ispyb.get_security_config")
189
mock_get_security_config.return_value = mock_security_config
190
191
- mock_ispyb_sessionmaker = mocker.patch("murfey.server.ispyb.sessionmaker")
192
- mock_ispyb_sessionmaker.return_value.return_value = ispyb_db_session
+ mock_ispyb_session_factory = MagicMock(return_value=ispyb_db_session)
+ mock_ispyb_session_factory.return_value = ispyb_db_session
193
+ # mock_ispyb_sessionmaker = mocker.patch(
194
+ mocker.patch(
195
+ "murfey.server.ispyb.sessionmaker", return_value=mock_ispyb_session_factory
196
+ )
197
198
# Mock the ISPYB connection when registering data collection group
199
mocker.patch(
0 commit comments