Expose fake statusbar for test_elided_text

Otherwise, we miss the paintEvent coverage.
This commit is contained in:
Florian Bruhin 2018-10-06 21:53:54 +02:00
parent 5c1bb190f7
commit 07d63e02c7

View File

@ -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)