File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ def test_get_all_ongoing_visits():
7474@mock .patch ("workflows.transport.pika_transport.PikaTransport" )
7575def test_transport_manager_init (mock_transport ):
7676 TransportManager ("PikaTransport" )
77+ print (mock_transport .mock_calls )
7778 mock_transport ().connect .assert_called_once ()
7879
7980
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments