mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-02-08 16:18:40 +01:00
test(controller): mock config_helper for controller off test
This commit is contained in:
@@ -11,6 +11,7 @@ def test_controller_off(dm_with_devices):
|
|||||||
device_manager=dm_with_devices,
|
device_manager=dm_with_devices,
|
||||||
)
|
)
|
||||||
controller.on()
|
controller.on()
|
||||||
|
with mock.patch.object(controller.device_manager, "config_helper") as mock_config_helper:
|
||||||
with mock.patch.object(controller.sock, "close") as mock_close:
|
with mock.patch.object(controller.sock, "close") as mock_close:
|
||||||
controller.off()
|
controller.off()
|
||||||
assert controller.sock is None
|
assert controller.sock is None
|
||||||
|
|||||||
Reference in New Issue
Block a user