fix: update upstream repo for plugin template #79
@@ -3,7 +3,7 @@
|
||||
# This file will be overwritten by copier on template updates.
|
||||
|
||||
_commit: v1.0.0
|
||||
_src_path: https://gitea.psi.ch/bec/bec_plugin_copier_template.git
|
||||
_src_path: https://github.com/bec-project/plugin_copier_template.git
|
||||
make_commit: false
|
||||
project_name: csaxs_bec
|
||||
widget_plugins_input: []
|
||||
|
||||
@@ -28,7 +28,10 @@ class RTMock(DeviceBase):
|
||||
|
||||
def test_save_frame(bec_client_mock):
|
||||
client = bec_client_mock
|
||||
client.device_manager.devices.xeye = DeviceBase(name="xeye", config={})
|
||||
client.device_manager.devices.xeye = DeviceBase(
|
||||
name="xeye",
|
||||
config={"enabled": True, "deviceClass": "test_class", "readoutPriority": "baseline"},
|
||||
)
|
||||
lamni = LamNI(client)
|
||||
align = XrayEyeAlign(client, lamni)
|
||||
with mock.patch(
|
||||
@@ -43,7 +46,10 @@ def test_update_frame(bec_client_mock):
|
||||
epics_get = "csaxs_bec.bec_ipython_client.plugins.LamNI.x_ray_eye_align.epics_get"
|
||||
fshopen = "csaxs_bec.bec_ipython_client.plugins.LamNI.x_ray_eye_align.fshopen"
|
||||
client = bec_client_mock
|
||||
client.device_manager.devices.xeye = DeviceBase(name="xeye", config={})
|
||||
client.device_manager.devices.xeye = DeviceBase(
|
||||
name="xeye",
|
||||
config={"enabled": True, "deviceClass": "test_class", "readoutPriority": "baseline"},
|
||||
)
|
||||
lamni = LamNI(client)
|
||||
align = XrayEyeAlign(client, lamni)
|
||||
with mock.patch(epics_put) as epics_put_mock:
|
||||
@@ -64,10 +70,16 @@ def test_update_frame(bec_client_mock):
|
||||
|
||||
def test_disable_rt_feedback(bec_client_mock):
|
||||
client = bec_client_mock
|
||||
client.device_manager.devices.xeye = DeviceBase(name="xeye", config={})
|
||||
client.device_manager.devices.xeye = DeviceBase(
|
||||
name="xeye",
|
||||
config={"enabled": True, "deviceClass": "test_class", "readoutPriority": "baseline"},
|
||||
)
|
||||
lamni = LamNI(client)
|
||||
align = XrayEyeAlign(client, lamni)
|
||||
client.device_manager.devices.rtx = RTMock(name="rtx", config={})
|
||||
client.device_manager.devices.rtx = RTMock(
|
||||
name="rtx",
|
||||
config={"enabled": True, "deviceClass": "test_class", "readoutPriority": "baseline"},
|
||||
)
|
||||
with mock.patch.object(
|
||||
align.device_manager.devices.rtx.controller, "feedback_disable"
|
||||
) as fdb_disable:
|
||||
@@ -77,10 +89,16 @@ def test_disable_rt_feedback(bec_client_mock):
|
||||
|
||||
def test_enable_rt_feedback(bec_client_mock):
|
||||
client = bec_client_mock
|
||||
client.device_manager.devices.xeye = DeviceBase(name="xeye", config={})
|
||||
client.device_manager.devices.xeye = DeviceBase(
|
||||
name="xeye",
|
||||
config={"enabled": True, "deviceClass": "test_class", "readoutPriority": "baseline"},
|
||||
)
|
||||
lamni = LamNI(client)
|
||||
align = XrayEyeAlign(client, lamni)
|
||||
client.device_manager.devices.rtx = RTMock(name="rtx", config={})
|
||||
client.device_manager.devices.rtx = RTMock(
|
||||
name="rtx",
|
||||
config={"enabled": True, "deviceClass": "test_class", "readoutPriority": "baseline"},
|
||||
)
|
||||
with mock.patch.object(
|
||||
align.device_manager.devices.rtx.controller, "feedback_enable_with_reset"
|
||||
) as fdb_enable:
|
||||
@@ -96,10 +114,16 @@ def test_tomo_rotate(bec_client_mock):
|
||||
client._update_namespace_callback = mock.MagicMock()
|
||||
client.callbacks = mock.MagicMock()
|
||||
client.load_high_level_interface("bec_hli")
|
||||
client.device_manager.devices.xeye = DeviceBase(name="xeye", config={})
|
||||
client.device_manager.devices.xeye = DeviceBase(
|
||||
name="xeye",
|
||||
config={"enabled": True, "deviceClass": "test_class", "readoutPriority": "baseline"},
|
||||
)
|
||||
lamni = LamNI(client)
|
||||
align = XrayEyeAlign(client, lamni)
|
||||
client.device_manager.devices.lsamrot = RTMock(name="lsamrot", config={})
|
||||
client.device_manager.devices.lsamrot = RTMock(
|
||||
name="lsamrot",
|
||||
config={"enabled": True, "deviceClass": "test_class", "readoutPriority": "baseline"},
|
||||
)
|
||||
with mock.patch.object(builtins, "umv") as umv:
|
||||
align.tomo_rotate(5)
|
||||
umv.assert_called_once_with(client.device_manager.devices.lsamrot, 5)
|
||||
|
||||
Reference in New Issue
Block a user