test: fix eiger on_stage test
This commit is contained in:
@@ -398,8 +398,13 @@ def test_eiger_on_stage(eiger_1_5m):
|
||||
with (
|
||||
mock.patch.object(eiger.jfj_client, "wait_for_idle", return_value=True),
|
||||
mock.patch.object(eiger.jfj_client, "start") as mock_start,
|
||||
mock.patch.object(eiger.jfj_client, "stop") as mock_stop,
|
||||
mock.patch.object(
|
||||
eiger.jfj_client.api, "status_get", return_value=BrokerStatus(state="Idle")
|
||||
),
|
||||
):
|
||||
eiger.stage()
|
||||
mock_stop.assert_not_called()
|
||||
assert (
|
||||
eiger._full_path
|
||||
== f"{scan_msg.info['file_components'][0]}_{eiger.name}_master.{scan_msg.info['file_components'][1]}"
|
||||
|
||||
Reference in New Issue
Block a user