Skip to content

Commit 6ed6ce5

Browse files
committed
Try and fix tests
1 parent 76b0497 commit 6ed6ce5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/workflows/tomo/test_tomo_metadata.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def test_register_search_map_update_with_all_parameters(
119119

120120
# Confirm the database was updated
121121
sm_final_parameters = murfey_db_session.exec(select(SearchMap)).one()
122-
assert sm_final_parameters.width == new_parameters.width
123-
assert sm_final_parameters.height == new_parameters.height
122+
assert sm_final_parameters.width == 2000
123+
assert sm_final_parameters.height == 4000
124124
assert sm_final_parameters.x_stage_position == 0.3
125125
assert sm_final_parameters.y_stage_position == 0.4
126126
assert sm_final_parameters.pixel_size == 0.1
@@ -187,9 +187,7 @@ def test_register_search_map_insert_with_ispyb(
187187
)
188188

189189
# Check this would have updated ispyb
190-
mock_transport.do_insert_search_map.assert_called_with(
191-
90, "SearchMap_1", new_parameters
192-
)
190+
mock_transport.do_insert_search_map.assert_called_with(90, new_parameters)
193191

194192
# Confirm the database entry was made
195193
sm_final_parameters = murfey_db_session.exec(select(SearchMap)).one()

0 commit comments

Comments
 (0)