diff --git a/pyproject.toml b/pyproject.toml index b49aab8ea..1529801a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ dependencies = [ "ophyd == 1.9.0", "ophyd-async >= 0.8a5", "bluesky >= 1.13", - "dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git@ae57c22eb170ef92ea9364541b63da30f6fbd52e", + "dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git@709df016424e3a6776f839cc58993651c5c678ab", ] diff --git a/src/mx_bluesky/hyperion/utils/validation.py b/src/mx_bluesky/hyperion/utils/validation.py index e371e3b43..1f2227a99 100644 --- a/src/mx_bluesky/hyperion/utils/validation.py +++ b/src/mx_bluesky/hyperion/utils/validation.py @@ -80,7 +80,7 @@ def plan(): def fake_create_rotation_devices(): beamstop = i03.beamstop(connect_immediately=True, mock=True) - eiger = i03.eiger(fake_with_ophyd_sim=True) + eiger = i03.eiger(connect_immediately=True, mock=True) smargon = i03.smargon(connect_immediately=True, mock=True) zebra = i03.zebra(connect_immediately=True, mock=True) detector_motion = i03.detector_motion(connect_immediately=True, mock=True) diff --git a/tests/conftest.py b/tests/conftest.py index 77ca9fa10..9d382e197 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -306,7 +306,7 @@ def done_status(): @pytest.fixture def eiger(done_status): - eiger = i03.eiger(fake_with_ophyd_sim=True) + eiger = i03.eiger(connect_immediately=True, mock=True) eiger.stage = MagicMock(return_value=done_status) eiger.do_arm.set = MagicMock(return_value=done_status) eiger.unstage = MagicMock(return_value=done_status) @@ -382,7 +382,7 @@ def undulator(): @pytest.fixture -def s4_slit_gaps(): +def s4_slit_gaps() -> S4SlitGaps: return i03.s4_slit_gaps(connect_immediately=True, mock=True) @@ -817,6 +817,7 @@ async def fake_fgs_composite( dcm, panda, backlight, + s4_slit_gaps, ): fake_composite = FlyScanXRayCentreComposite( aperture_scatterguard=aperture_scatterguard, @@ -824,12 +825,12 @@ async def fake_fgs_composite( backlight=backlight, dcm=dcm, # We don't use the eiger fixture here because .unstage() is used in some tests - eiger=i03.eiger(fake_with_ophyd_sim=True), + eiger=i03.eiger(connect_immediately=True, mock=True), zebra_fast_grid_scan=i03.zebra_fast_grid_scan( connect_immediately=True, mock=True ), flux=i03.flux(connect_immediately=True, mock=True), - s4_slit_gaps=i03.s4_slit_gaps(connect_immediately=True, mock=True), + s4_slit_gaps=s4_slit_gaps, smargon=smargon, undulator=i03.undulator(connect_immediately=True, mock=True), synchrotron=synchrotron, diff --git a/tests/system_tests/hyperion/experiment_plans/test_fgs_plan.py b/tests/system_tests/hyperion/experiment_plans/test_fgs_plan.py index 1b3300243..43a770170 100644 --- a/tests/system_tests/hyperion/experiment_plans/test_fgs_plan.py +++ b/tests/system_tests/hyperion/experiment_plans/test_fgs_plan.py @@ -83,7 +83,7 @@ async def fxc_composite(): dcm=i03.dcm(fake_with_ophyd_sim=True), eiger=i03.eiger(), zebra_fast_grid_scan=i03.zebra_fast_grid_scan(), - flux=i03.flux(fake_with_ophyd_sim=True), + flux=i03.flux(connect_immediately=True, mock=True), robot=i03.robot(connect_immediately=True, mock=True), panda=i03.panda(connect_immediately=True, mock=True), panda_fast_grid_scan=i03.panda_fast_grid_scan( diff --git a/tests/system_tests/hyperion/experiment_plans/test_plan_system.py b/tests/system_tests/hyperion/experiment_plans/test_plan_system.py index fcf50778a..dbac727ff 100644 --- a/tests/system_tests/hyperion/experiment_plans/test_plan_system.py +++ b/tests/system_tests/hyperion/experiment_plans/test_plan_system.py @@ -32,7 +32,7 @@ async def test_getting_data_for_ispyb(): synchrotron = i03.synchrotron(connect_immediately=True, mock=True) slit_gaps = S4SlitGaps(f"{CONST.SIM.BEAMLINE}-AL-SLITS-04:", name="slits") attenuator = i03.attenuator(connect_immediately=True, mock=True) - flux = i03.flux(fake_with_ophyd_sim=True) + flux = i03.flux(connect_immediately=True, mock=True) dcm = i03.dcm(fake_with_ophyd_sim=True) aperture_scatterguard = ApertureScatterguard( prefix="BL03S", @@ -41,7 +41,7 @@ async def test_getting_data_for_ispyb(): tolerances=AperturePosition.tolerances_from_gda_params(params), ) smargon = i03.smargon(connect_immediately=True, mock=True) - eiger = i03.eiger(fake_with_ophyd_sim=True) + eiger = i03.eiger(mock=True) await undulator.connect() await slit_gaps.connect() await flux.connect() diff --git a/tests/unit_tests/common/device_setup_plans/test_read_hardware_for_setup.py b/tests/unit_tests/common/device_setup_plans/test_read_hardware_for_setup.py index 14d3ac22a..ddfa44020 100644 --- a/tests/unit_tests/common/device_setup_plans/test_read_hardware_for_setup.py +++ b/tests/unit_tests/common/device_setup_plans/test_read_hardware_for_setup.py @@ -12,7 +12,7 @@ @pytest.fixture def fake_eiger() -> EigerDetector: - return eiger(fake_with_ophyd_sim=True) + return eiger(mock=True) def test_read_hardware_for_zocalo_in_RE(fake_eiger, RE: RunEngine): diff --git a/tests/unit_tests/common/plan_stubs/test_do_fgs.py b/tests/unit_tests/common/plan_stubs/test_do_fgs.py index 58c639bcd..eb23c66bd 100644 --- a/tests/unit_tests/common/plan_stubs/test_do_fgs.py +++ b/tests/unit_tests/common/plan_stubs/test_do_fgs.py @@ -29,7 +29,7 @@ def fgs_devices(RE): grid_scan_device = ZebraFastGridScan("zebra_fgs") # Eiger done separately as not ophyd-async yet - detector = eiger(fake_with_ophyd_sim=True) + detector = eiger(mock=True) return { "synchrotron": synchrotron, diff --git a/tests/unit_tests/hyperion/device_setup_plans/test_utils.py b/tests/unit_tests/hyperion/device_setup_plans/test_utils.py index d92cea39a..3ea80fb02 100644 --- a/tests/unit_tests/hyperion/device_setup_plans/test_utils.py +++ b/tests/unit_tests/hyperion/device_setup_plans/test_utils.py @@ -14,7 +14,7 @@ @pytest.fixture() def mock_eiger(): - eiger = i03.eiger(fake_with_ophyd_sim=True) + eiger = i03.eiger(mock=True) eiger.detector_params = MagicMock() eiger.async_stage = MagicMock() eiger.disarm_detector = MagicMock()