Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Restructure epics/test_signals.py #630

wants to merge 6 commits into from

Conversation

jsouter
Copy link
Contributor

@jsouter jsouter commented Oct 30, 2024

closes #385

Now has a single IOC containing all the CA and PVA records, and a Device group which provides access to them.

tests/epics/signal/test_signals.py Outdated Show resolved Hide resolved
tests/epics/signal/test_signals.py Outdated Show resolved Hide resolved
tests/epics/signal/test_signals.py Outdated Show resolved Hide resolved
Comment on lines 102 to 70
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
Copy link
Collaborator

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?

@jsouter
Copy link
Contributor Author

jsouter commented Nov 15, 2024

Will update test_device_save_loader to use the the example PvaDevice class

@jsouter jsouter marked this pull request as ready for review November 15, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restructure epics/test_signals.py
2 participants