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

wip fix scan_history tests fxup

This commit is contained in:
2025-07-11 08:16:15 +02:00
parent 558b4df2cb
commit 27d4b939e1

View File

@ -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) scan_history_browser.scan_history_view.topLevelItem(1)
).center(), ).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 # Both metadata and device viewers should be updated with the first scan
qtbot.waitUntil( # qtbot.waitUntil(
lambda: scan_history_browser.scan_history_metadata_viewer.scan_history_msg # lambda: scan_history_browser.scan_history_metadata_viewer.scan_history_msg
== scan_history_msg, # == scan_history_msg,
timeout=5000, # timeout=5000,
) # )
qtbot.waitUntil( # qtbot.waitUntil(
lambda: scan_history_browser.scan_history_device_viewer.scan_history_msg # lambda: scan_history_browser.scan_history_device_viewer.scan_history_msg
== scan_history_msg, # == scan_history_msg,
timeout=5000, # timeout=5000,
) # )
callback_args = [] callback_args = []