-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
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
Restructure epics/test_signals.py #630
Conversation
tests/epics/signal/test_signals.py
Outdated
async def _make_backend(typ: type | None, protocol: str, suff: str, timeout=10.0): | ||
pv = f"{protocol}://{PV_PREFIX}:{protocol}:{suff}" | ||
# Make and connect the backend | ||
backend = _epics_signal_backend(typ, pv, pv) | ||
await backend.connect(timeout=timeout) | ||
return backend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we replace this with getattr(device, suffix)
in some way?
f4afeb4
to
d3eb221
Compare
2a1b056
to
a819a88
Compare
Will update test_device_save_loader to use the the example PvaDevice class |
the only codecov complaint is [src/ophyd_async/epics/testing/_utils.py](https://app.codecov.io/gh/bluesky/ophyd-async/pull/630/blob/src/ophyd_async/epics/testing/_utils.py)
12
73.33%
73.33%
- @coretl petition to exclude testing._utils from testing coverage |
@jsouter should I review this now or are there more changes to come? |
I've got some more changes to push, will try and get those done soon! |
fa4e9ab
to
02bb72e
Compare
move pva only records to test_records_pva.db use ioc args to load multiple templates in epics/test_signals.py create_ioc_fixtures in epics.testing.utils Move example IOC and device for epics signal test to epics.testing module
02bb72e
to
43ab008
Compare
* Use single IOC for both CA and PVA signals in epics/test_signals.py move pva only records to test_records_pva.db use ioc args to load multiple templates in epics/test_signals.py create_ioc_fixtures in epics.testing.utils Move example IOC and device for epics signal test to epics.testing module * Update test_device_save_loader to use example Device from epics.testing * Add TestingIOC class to epics.testing and example ioc helper functions
closes #385
Now has a single IOC containing all the CA and PVA records, and a Device group which provides access to them.