1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-04 16:02:51 +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 Christian Appel
parent 2b27faf779
commit 58e57169e8

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
)