Skip to content

Commit 46012ab

Browse files
committed
Find ou twha the calls are
1 parent 3a76ca5 commit 46012ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/server/test_ispyb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def test_get_all_ongoing_visits():
7474
@mock.patch("workflows.transport.pika_transport.PikaTransport")
7575
def test_transport_manager_init(mock_transport):
7676
TransportManager("PikaTransport")
77+
print(mock_transport.mock_calls)
7778
mock_transport().connect.assert_called_once()
7879

7980

tests/workflows/tomo/test_tomo_metadata.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,14 @@ def test_register_search_map_update_with_all_parameters(
137137
# Check this would have updated ispyb
138138
update_args = mock_transport.do_update_search_map.call_args_list
139139
assert len(update_args) == 2
140-
print(update_args)
141140
assert update_args[0][0][0] == 1
142141
assert update_args[1][0][0] == 1
143142
assert update_args[0][0][1].x_stage_position == 0.3
144143
assert update_args[0][0][1].y_stage_position == 0.4
145144
assert update_args[1][0][1].x_location == sm_final_parameters.x_location
146-
assert update_args[1][0][1].x_location == sm_final_parameters.y_location
147-
assert update_args[1][0][1].height_on_atlas == int(40 * 7.8)
148-
assert update_args[1][0][1].width_on_atlas == int(20 * 7.8)
145+
assert update_args[1][0][1].y_location == sm_final_parameters.y_location
146+
assert update_args[1][0][1].height_on_atlas == int(4000 * 1e-5 / 1e-7 * 7.8)
147+
assert update_args[1][0][1].width_on_atlas == int(2000 * 1e-5 / 1e-7 * 7.8)
149148

150149

151150
@mock.patch("murfey.workflows.tomo.tomo_metadata._transport_object")

0 commit comments

Comments
 (0)