Skip to content

Commit 6faf01c

Browse files
committed
Test BlueapiClient.run_plan
1 parent 7b27586 commit 6faf01c

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
@@ -416,6 +416,15 @@ def test_run_task_fails_on_failing_event(
416416
on_event.assert_called_with(FAILED_EVENT)
417417

418418

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+
419428
@pytest.mark.parametrize(
420429
"test_event",
421430
[

0 commit comments

Comments
 (0)