From ed3fd71e6fe4ab0c43a0020cdb9d5e58f6ece8db Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 15 Mar 2016 08:29:33 +0100 Subject: [PATCH] Force showing of label in test_elided_text It seems the paintEvent of TextBase never got called since we switched to using fake_statusbar, breaking the 100% coverage check. --- tests/unit/mainwindow/statusbar/test_textbase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/mainwindow/statusbar/test_textbase.py b/tests/unit/mainwindow/statusbar/test_textbase.py index 32058e259..8a1b2db39 100644 --- a/tests/unit/mainwindow/statusbar/test_textbase.py +++ b/tests/unit/mainwindow/statusbar/test_textbase.py @@ -50,6 +50,8 @@ def test_elided_text(fake_statusbar, qtbot, elidemode, check): long_string = 'Hello world! ' * 100 label.setText(long_string) + label.show() + qtbot.waitForWindowShown(label) assert check(label._elided_text)