Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
(#1242) Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicOram committed Mar 8, 2024
1 parent aedcbf8 commit 7ad7b8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ def test_read_hardware_for_ispyb_updates_from_ophyd_devices(
assert hyperion_params.ispyb_params.sample_barcode == "BARCODE"

@patch(
"dodal.devices.aperturescatterguard.ApertureScatterguard._safe_move_within_datacollection_range"
"dodal.devices.aperturescatterguard.ApertureScatterguard._safe_move_within_datacollection_range",
return_value=Status(done=True, success=True),
)
@patch(
"hyperion.experiment_plans.flyscan_xray_centre_plan.run_gridscan", autospec=True
Expand Down Expand Up @@ -348,6 +349,7 @@ def test_results_passed_to_move_motors(

@patch(
"dodal.devices.aperturescatterguard.ApertureScatterguard._safe_move_within_datacollection_range",
return_value=Status(done=True, success=True),
)
@patch(
"hyperion.experiment_plans.flyscan_xray_centre_plan.run_gridscan", autospec=True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ def test_read_hardware_for_ispyb_updates_from_ophyd_devices(
assert params.hyperion_params.ispyb_params.sample_barcode == "BARCODE"

@patch(
"dodal.devices.aperturescatterguard.ApertureScatterguard._safe_move_within_datacollection_range"
"dodal.devices.aperturescatterguard.ApertureScatterguard._safe_move_within_datacollection_range",
return_value=Status(done=True, success=True),
)
@patch(
"hyperion.experiment_plans.panda_flyscan_xray_centre_plan.run_gridscan",
Expand Down Expand Up @@ -318,6 +319,7 @@ def test_results_passed_to_move_motors(

@patch(
"dodal.devices.aperturescatterguard.ApertureScatterguard._safe_move_within_datacollection_range",
return_value=Status(done=True, success=True),
)
@patch(
"hyperion.experiment_plans.panda_flyscan_xray_centre_plan.run_gridscan",
Expand Down

0 comments on commit 7ad7b8f

Please sign in to comment.