tests: add 'conftest.py' with ophyd_devices import to ensure ophyd is always patched, first
This commit is contained in:
parent
8a9a6a9910
commit
3a1202d0d8
1
tests/conftest.py
Normal file
1
tests/conftest.py
Normal file
@ -0,0 +1 @@
|
||||
import ophyd_devices # ensure we are patched
|
@ -3,13 +3,10 @@ import time
|
||||
from unittest.mock import Mock
|
||||
|
||||
import pytest
|
||||
|
||||
import ophyd_devices # ensure we are patched
|
||||
from ophyd.status import DeviceStatus, StatusBase, StatusTimeoutError
|
||||
|
||||
|
||||
def test_ophyd_status_patch():
|
||||
from ophyd.status import DeviceStatus, StatusBase, StatusTimeoutError
|
||||
|
||||
assert StatusBase._bec_patched
|
||||
|
||||
st = DeviceStatus(device="test")
|
||||
|
Loading…
x
Reference in New Issue
Block a user