test: ensure to reset the controller instances

This commit is contained in:
2024-05-14 14:29:14 +02:00
parent 8a24692e82
commit 11ed6e112f

View File

@@ -9,6 +9,7 @@ from csaxs_bec.devices.rt.rt_ophyd import RtError
@pytest.fixture()
def rt_flomni():
RtFlomniController._reset_controller()
rt_flomni = RtFlomniController(
name="rt_flomni", socket_cls=SocketMock, socket_host="localhost", socket_port=8081
)
@@ -30,6 +31,7 @@ def rt_flomni():
rt_flomni.set_axis(axis=rty, axis_nr=1)
rt_flomni.set_axis(axis=rtz, axis_nr=2)
yield rt_flomni
RtFlomniController._reset_controller()
def test_rt_flomni_move_to_zero(rt_flomni):