mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
wip fix scan_history tests fxup
This commit is contained in:
@ -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 = []
|
||||
|
||||
|
Reference in New Issue
Block a user