From 07d63e02c73f2852516c63379e890416cf95ad0b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 6 Oct 2018 21:53:54 +0200 Subject: [PATCH] Expose fake statusbar for test_elided_text Otherwise, we miss the paintEvent coverage. --- 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 9299e3a5f..f66de9990 100644 --- a/tests/unit/mainwindow/statusbar/test_textbase.py +++ b/tests/unit/mainwindow/statusbar/test_textbase.py @@ -44,6 +44,8 @@ def test_elided_text(fake_statusbar, qtbot, elidemode, check): check: function that receives the elided text and must return True if the ellipsis is placed correctly according to elidemode. """ + fake_statusbar.container.expose() + label = TextBase(elidemode=elidemode) qtbot.add_widget(label) fake_statusbar.hbox.addWidget(label)