From 58e57169e8329bda98c1c533391e47e3b2804aed Mon Sep 17 00:00:00 2001 From: appel_c Date: Fri, 16 Jan 2026 17:40:00 +0100 Subject: [PATCH] test(config-communicator): add test for cancel action --- tests/unit_tests/test_config_communicator.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/unit_tests/test_config_communicator.py b/tests/unit_tests/test_config_communicator.py index 04e75bde..e4274565 100644 --- a/tests/unit_tests/test_config_communicator.py +++ b/tests/unit_tests/test_config_communicator.py @@ -59,3 +59,13 @@ def test_remove_readd_with_device_config(qtbot): call(action="add", config=ANY, wait_for_response=False), ] ) + + +def test_cancel_config_action(qtbot): + ch = MagicMock(spec=ConfigHelper) + ch.send_config_request.return_value = "abcde" + cca = CommunicateConfigAction(config_helper=ch, device=None, config=None, action="cancel") + cca.run() + ch.send_config_request.assert_called_once_with( + action="cancel", config=None, wait_for_response=True, timeout_s=10 + )