Skip to content

Commit f33c945

Browse files
committed
Print object to see what it is
1 parent dcb94e5 commit f33c945

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/murfey/server/ispyb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def do_insert_data_collection_group(
124124
**kwargs,
125125
):
126126
try:
127+
print(ISPyBSession())
127128
with ISPyBSession() as db:
128129
db.add(record)
129130
db.commit()

tests/server/test_ispyb.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +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(
103-
"murfey.server.ispyb.ISPyBSession.__call__.__enter__", ispyb_db_session
104-
):
102+
with mock.patch("murfey.server.ispyb.ISPyBSession.__call__", ispyb_db_session):
105103
transport_manager.do_update_data_collection_group(
106104
record=DataCollectionGroup(dataCollectionGroupId=1, experimentTypeId=2)
107105
)

0 commit comments

Comments
 (0)