We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to document 2 ways:
device.read()
from collections import defaultdict def assert_emitted(docs: Dict[str, list], **numbers: int): assert list(docs) == list(numbers) assert {name: len(d) for name, d in docs.items()} == numbers def test_plan(): docs = defaultdict(list) RE(plan(), lambda name, doc: docs[name].append(doc)) assert_emitted(docs, start=1, descriptor=1, resource=1, datum=1, event=1, stop=1)
The text was updated successfully, but these errors were encountered:
There is an existing docs page on testing that we can add to: https://blueskyproject.io/ophyd-async/main/user/how-to/write-tests-for-devices.html
Sorry, something went wrong.
Relm-Arrowny
Successfully merging a pull request may close this issue.
Need to document 2 ways:
device.read()
and inspect the output. Should use helpers made in Test helpers for assering value, reading and configuration #199The text was updated successfully, but these errors were encountered: