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

Commit

Permalink
Remove override for faking devices
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicOram committed Jul 11, 2024
1 parent 3e898e2 commit 4c75d12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/hyperion/utils/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}")
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/hyperion/test_main_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 4c75d12

Please sign in to comment.