Skip to content

Commit dc35e9f

Browse files
committed
Mock as return value
1 parent c654ddd commit dc35e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/server/test_ispyb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ 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", ispyb_db_session):
102+
with mock.patch("murfey.server.ispyb.ISPyBSession", return_value=ispyb_db_session):
103103
transport_manager.do_update_data_collection_group(
104104
record=DataCollectionGroup(dataCollectionGroupId=1, experimentTypeId=2)
105105
)

0 commit comments

Comments
 (0)