mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-01-18 16:12:20 +01:00
test: fix mock_cl.thread_class for eiger,falcon and pilatus; add tests for falcon csaxs; fix bugs in code based on tests
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import os
|
||||
import pytest
|
||||
import threading
|
||||
from unittest import mock
|
||||
|
||||
import ophyd
|
||||
@@ -34,6 +35,7 @@ def mock_det():
|
||||
) as mock_service_config:
|
||||
with mock.patch.object(ophyd, "cl") as mock_cl:
|
||||
mock_cl.get_pv = MockPV
|
||||
mock_cl.thread_class = threading.Thread
|
||||
with mock.patch.object(PilatuscSAXS, "_init"):
|
||||
det = PilatuscSAXS(
|
||||
name=name, prefix=prefix, device_manager=dm, sim_mode=sim_mode
|
||||
|
||||
Reference in New Issue
Block a user