Add qtbot.wait to ensure pending events don't cause errors

This commit is contained in:
Rebecca Breu 2021-05-31 18:36:11 +02:00
parent be13aa2ddb
commit 686bb9cea5

View file

@ -44,6 +44,8 @@ def main_window(qtbot):
main = BeeRefMainWindow(app)
qtbot.addWidget(main)
yield main
# ensure pending events can be processed before things get deleted:
qtbot.wait(100)
@pytest.fixture