0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 11:11:49 +02:00

fix: put waiting in thread

This commit is contained in:
2025-06-13 12:36:27 +02:00
committed by David Perl
parent 138d4cabbd
commit 1a350c3b16
2 changed files with 59 additions and 21 deletions

View File

@ -91,6 +91,7 @@ def test_update_cycle(dialog, qtbot):
assert dialog.updated_config() == update
dialog.apply()
qtbot.waitUntil(lambda: dialog._config_helper.send_config_request.call_count == 1, timeout=100)
dialog._config_helper.send_config_request.assert_called_with(
action="update", config={"test_device": update}, wait_for_response=False