1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-09 10:17:50 +01:00

test(config-communicator): add test for cancel action

This commit is contained in:
2026-01-16 17:40:00 +01:00
committed by wyzula-jan
parent caba3a55f3
commit 24701c2a27

View File

@@ -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
)