Skip to content

Commit

Permalink
Move plan into a plans stubs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
olliesilvester committed Aug 5, 2024
1 parent 698a5c1 commit 0da52c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from dodal.devices.synchrotron import Synchrotron, SynchrotronMode
from ophyd_async.core import DeviceCollector, set_mock_value

from mx_bluesky.plans.level_1.do_fgs import do_fgs
from mx_bluesky.plan_stubs.do_fgs import do_fgs


@pytest.fixture
Expand Down Expand Up @@ -40,7 +40,7 @@ def null_plan():
fgs_device = fgs_devices["grid_scan_device"]
post_plan = MagicMock(side_effect=null_plan)
pre_plan = MagicMock(side_effect=null_plan)
with patch("mx_bluesky.plans.level_1.do_fgs.check_topup_and_wait_if_necessary"):
with patch("mx_bluesky.plan_stubs.do_fgs.check_topup_and_wait_if_necessary"):
msgs = sim_run_engine.simulate_plan(
do_fgs(
fgs_device,
Expand All @@ -52,7 +52,7 @@ def null_plan():
)
null_messages = [msg for msg in msgs if msg.command == "null"]
assert len(null_messages) == 2
with patch("mx_bluesky.plans.level_1.do_fgs.check_topup_and_wait_if_necessary"):
with patch("mx_bluesky.plan_stubs.do_fgs.check_topup_and_wait_if_necessary"):
msgs = sim_run_engine.simulate_plan(
do_fgs(
fgs_device,
Expand All @@ -77,5 +77,5 @@ def do_fgs_plan_in_run():

set_mock_value(fgs_device.status, 1)

with patch("mx_bluesky.plans.level_1.do_fgs.bps.complete"):
with patch("mx_bluesky.plan_stubs.do_fgs.bps.complete"):
RE(do_fgs_plan_in_run())

0 comments on commit 0da52c9

Please sign in to comment.