mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-01-16 23:29:21 +01:00
tests: add 'conftest.py' with ophyd_devices import to ensure ophyd is always patched, first
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user