We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b27586 commit 6faf01cCopy full SHA for 6faf01c
1 file changed
tests/unit_tests/client/test_client.py
@@ -416,6 +416,15 @@ def test_run_task_fails_on_failing_event(
416
on_event.assert_called_with(FAILED_EVENT)
417
418
419
+@patch("blueapi.client.client.BlueapiClient.run_task")
420
+def test_run_plan(run_task, client, mock_rest):
421
+ client.instrument_session = "cm12345-2"
422
+ client.run_plan("foo", {"foo": "bar"})
423
+ run_task.assert_called_once_with(
424
+ TaskRequest(name="foo", params={"foo": "bar"}, instrument_session="cm12345-2")
425
+ )
426
+
427
428
@pytest.mark.parametrize(
429
"test_event",
430
[
0 commit comments