From aed13c5e64695da5a77a396a6969179e7b8f2423 Mon Sep 17 00:00:00 2001 From: Devan Agrawal Date: Thu, 6 Jun 2024 12:01:27 -0700 Subject: [PATCH] TST: add IOC fixture mirroring LINAC model --- superscore/tests/conftest.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/superscore/tests/conftest.py b/superscore/tests/conftest.py index 8bb730f..85b8226 100644 --- a/superscore/tests/conftest.py +++ b/superscore/tests/conftest.py @@ -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') @@ -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