Skip to content

Commit dcb94e5

Browse files
committed
More layers
1 parent 4f99666 commit dcb94e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/server/test_ispyb.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ def test_update_data_collection_group(mock_transport, ispyb_db_session: Session)
9999
)
100100

101101
transport_manager = TransportManager("PikaTransport")
102-
with mock.patch("murfey.server.ispyb.ISPyBSession.__call__", ispyb_db_session):
102+
with mock.patch(
103+
"murfey.server.ispyb.ISPyBSession.__call__.__enter__", ispyb_db_session
104+
):
103105
transport_manager.do_update_data_collection_group(
104106
record=DataCollectionGroup(dataCollectionGroupId=1, experimentTypeId=2)
105107
)

0 commit comments

Comments
 (0)