Skip to content

Add an option to connect to devices with mock=True #732

Closed

Description

@d-perl

When doing end-to-end testing, e.g. calling plans from my new GUI, I'd like to be able to run an instance of BlueAPI with mock devices to run plans against.

I've looked through the code a bit and can't find anything like it, but if it already exists then this issue is to add it to the docs.

Activity

  1. added this to the 1.0.0 milestone on Nov 29, 2024
  2. callumforrester commented on Nov 29, 2024

    @callumforrester
    Contributor

    This is a good idea and important. @fajinyuan has expressed a desire for a similar feature before.

    Possible Solution

    Add a mock flag to the env config, if it is True pass mock=True to make_all_devices in BlueskyContext

    env:
        mock: true

    Acceptance Criteria

    • There is a mock flag in config.env
    • It defaults to False
    • If it is set to True, all (ophyd-async) devices are connected in mock mode
  3. removed this from the 1.0.0 milestone on Mar 21, 2025
  4. moved this to Backlog in Hyperionon Oct 16, 2025
  5. moved this from Backlog to Todo This Sprint in Hyperionon Oct 16, 2025
  6. self-assigned this
    on Oct 16, 2025
  7. moved this from Todo This Sprint to Review in Hyperionon Oct 23, 2025
  8. moved this from Review to Done in Hyperionon Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions