Skip to content

Commit 5fec830

Browse files
committed
tests: improve robustness
1 parent b1a8d3c commit 5fec830

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_gui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from dcoraid.gui.panel_uploads import widget_upload
1313

1414
import pytest
15-
from PyQt6 import QtCore, QtGui, QtWidgets
15+
from PyQt6 import QtCore, QtGui, QtTest, QtWidgets
1616
from PyQt6.QtWidgets import QInputDialog, QMessageBox
1717

1818
from . import common
@@ -233,6 +233,7 @@ def test_gui_upload_simple(mw, qtbot):
233233
mw.panel_upload.widget_jobs.on_update_job_status()
234234
QtWidgets.QApplication.processEvents(
235235
QtCore.QEventLoop.ProcessEventsFlag.AllEvents, 200)
236+
QtTest.QTest.qWait(500)
236237
assert mw.database.get_dataset_dict(dlg.dataset_id)
237238

238239

0 commit comments

Comments
 (0)