We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 595d2a8 commit 0c9b8d4Copy full SHA for 0c9b8d4
1 file changed
tests/unit_tests/client/test_client.py
@@ -406,6 +406,15 @@ def test_run_task_fails_on_failing_event(
406
on_event.assert_called_with(FAILED_EVENT)
407
408
409
+@patch("blueapi.client.client.BlueapiClient.run_task")
410
+def test_run_plan(run_task, client, mock_rest):
411
+ client.instrument_session = "cm12345-2"
412
+ client.run_plan("foo", {"foo": "bar"})
413
+ run_task.assert_called_once_with(
414
+ TaskRequest(name="foo", params={"foo": "bar"}, instrument_session="cm12345-2")
415
+ )
416
+
417
418
@pytest.mark.parametrize(
419
"test_event",
420
[
0 commit comments