Skip to content

Commit

Permalink
TST: add IOC fixture mirroring LINAC model
Browse files Browse the repository at this point in the history
  • Loading branch information
shilorigins committed Aug 1, 2024
1 parent 0a01f28 commit aed13c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions superscore/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from superscore.control_layers.core import ControlLayer
from superscore.model import (Collection, Parameter, Readback, Root, Setpoint,
Snapshot)
from superscore.tests.ioc.ioc import IOCFactory


@pytest.fixture(scope='function')
Expand Down Expand Up @@ -732,3 +733,10 @@ def sample_client(
client.cl = dummy_cl

return client


@pytest.fixture(scope='function')
def ioc(linac_backend):
linac_model = linac_backend.get_entry("441ff79f-4948-480e-9646-55a1462a5a70")
with IOCFactory.from_entries(linac_model.children, prefix="SCORETEST:"):
yield

0 comments on commit aed13c5

Please sign in to comment.