mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-02-20 17:28:42 +01:00
fix(shutter): Rename class, refactor is_open to be kind normal
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user