Skip to content

Commit 0c9b8d4

Browse files
committed
Test BlueapiClient.run_plan
1 parent 595d2a8 commit 0c9b8d4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/unit_tests/client/test_client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,15 @@ def test_run_task_fails_on_failing_event(
406406
on_event.assert_called_with(FAILED_EVENT)
407407

408408

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+
409418
@pytest.mark.parametrize(
410419
"test_event",
411420
[

0 commit comments

Comments
 (0)