fix(shutter): Rename class, refactor is_open to be kind normal

This commit is contained in:
2025-12-01 10:48:27 +01:00
committed by Christian Appel
parent 234b0149d3
commit 86436c5986
2 changed files with 6 additions and 6 deletions

View File

@@ -1,12 +1,12 @@
import pytest
from ophyd_devices.devices.optics_shutter import Shutter, ShutterEnabled, ShutterOpenState
from ophyd_devices.devices.optics_shutter import OpticsShutter, ShutterEnabled, ShutterOpenState
from ophyd_devices.tests.utils import patched_device
@pytest.fixture(scope="function")
def mock_shutter():
with patched_device(Shutter, name="shutter", prefix="X10SA-EH1-PSYS:SH-A-") as shutter:
with patched_device(OpticsShutter, name="shutter", prefix="X10SA-EH1-PSYS:SH-A-") as shutter:
yield shutter