mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-01-16 15:29:20 +01:00
replaced staging in tests by direct controller.on calls
This commit is contained in:
@@ -21,7 +21,7 @@ def test_axis_get(pos, msg, sign):
|
||||
socket_cls=SocketMock,
|
||||
)
|
||||
leyey.controller.sock.flush_buffer()
|
||||
leyey.stage()
|
||||
leyey.controller.on()
|
||||
leyey.controller.sock.buffer_recv = msg
|
||||
val = leyey.read()
|
||||
assert val["leyey"]["value"] == pos
|
||||
|
||||
@@ -203,7 +203,7 @@ def test_move_axis(pos, get_msg, return_msg):
|
||||
sign=1,
|
||||
socket_cls=SocketMock,
|
||||
)
|
||||
lsmarA.stage()
|
||||
lsmarA.controller.on()
|
||||
controller = lsmarA.controller
|
||||
controller.sock.flush_buffer()
|
||||
controller.sock.buffer_recv = return_msg
|
||||
|
||||
Reference in New Issue
Block a user