From 27d4b939e164ca12fb2e53ae229e0dbdabed34b9 Mon Sep 17 00:00:00 2001 From: appel_c Date: Fri, 11 Jul 2025 08:16:15 +0200 Subject: [PATCH] wip fix scan_history tests fxup --- tests/unit_tests/test_scan_history_browser.py | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/tests/unit_tests/test_scan_history_browser.py b/tests/unit_tests/test_scan_history_browser.py index caa5e24d..79fee820 100644 --- a/tests/unit_tests/test_scan_history_browser.py +++ b/tests/unit_tests/test_scan_history_browser.py @@ -310,18 +310,21 @@ def test_scan_history_browser(qtbot, scan_history_browser, scan_history_msg, sca scan_history_browser.scan_history_view.topLevelItem(1) ).center(), ) + qtbot.wait(2000) + assert scan_history_browser.scan_history_metadata_viewer.scan_history_msg == scan_history_msg + assert scan_history_browser.scan_history_device_viewer.scan_history_msg == scan_history_msg # Both metadata and device viewers should be updated with the first scan - qtbot.waitUntil( - lambda: scan_history_browser.scan_history_metadata_viewer.scan_history_msg - == scan_history_msg, - timeout=5000, - ) - qtbot.waitUntil( - lambda: scan_history_browser.scan_history_device_viewer.scan_history_msg - == scan_history_msg, - timeout=5000, - ) + # qtbot.waitUntil( + # lambda: scan_history_browser.scan_history_metadata_viewer.scan_history_msg + # == scan_history_msg, + # timeout=5000, + # ) + # qtbot.waitUntil( + # lambda: scan_history_browser.scan_history_device_viewer.scan_history_msg + # == scan_history_msg, + # timeout=5000, + # ) callback_args = []