diff --git a/src/hyperion/utils/context.py b/src/hyperion/utils/context.py index b2ae62b52..0066ab305 100644 --- a/src/hyperion/utils/context.py +++ b/src/hyperion/utils/context.py @@ -70,16 +70,13 @@ def device_composite_from_context(context: BlueskyContext, dc: Type[DT]) -> DT: return dc(**devices) -def setup_context( - wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False -) -> BlueskyContext: +def setup_context(wait_for_connection: bool = True) -> BlueskyContext: context = BlueskyContext() context.with_plan_module(hyperion_plans) context.with_dodal_module( get_beamline_based_on_environment_variable(), wait_for_connection=wait_for_connection, - fake_with_ophyd_sim=fake_with_ophyd_sim, ) LOGGER.info(f"Plans found in context: {context.plan_functions.keys()}") diff --git a/tests/unit_tests/hyperion/test_main_system.py b/tests/unit_tests/hyperion/test_main_system.py index f0838f9f8..5baf303a0 100644 --- a/tests/unit_tests/hyperion/test_main_system.py +++ b/tests/unit_tests/hyperion/test_main_system.py @@ -546,7 +546,7 @@ def test_when_context_created_then_contains_expected_number_of_plans( get_beamline_parameters, ): with patch.dict(os.environ, {"BEAMLINE": "i03"}): - context = setup_context(wait_for_connection=False, fake_with_ophyd_sim=True) + context = setup_context(wait_for_connection=False) plan_names = context.plans.keys()