Skip to content

Commit 3b02ae6

Browse files
committed
Sort out ids
1 parent 8f21e09 commit 3b02ae6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/server/test_ispyb.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def test_update_data_collection_group(mock_transport, ispyb_db_session: Session)
7777
session=ispyb_db_session,
7878
table=DataCollectionGroup,
7979
insert_kwargs={
80-
"dataCollectionGroup": 1,
81-
"experimentType": 1,
80+
"dataCollectionGroupId": 1,
81+
"experimentTypeId": 1,
8282
},
8383
)
8484

@@ -93,8 +93,6 @@ def test_update_data_collection_group(mock_transport, ispyb_db_session: Session)
9393
final_dcg_entry = get_or_create_db_entry(
9494
session=ispyb_db_session,
9595
table=DataCollectionGroup,
96-
lookup_kwargs={
97-
"dataCollectionGroup": 1,
98-
},
96+
lookup_kwargs={"dataCollectionGroupId": 1},
9997
)
10098
assert final_dcg_entry.experimentTypeId == 2

0 commit comments

Comments
 (0)