Expose fake statusbar for test_elided_text
Otherwise, we miss the paintEvent coverage.
This commit is contained in:
parent
5c1bb190f7
commit
07d63e02c7
@ -44,6 +44,8 @@ def test_elided_text(fake_statusbar, qtbot, elidemode, check):
|
|||||||
check: function that receives the elided text and must return True
|
check: function that receives the elided text and must return True
|
||||||
if the ellipsis is placed correctly according to elidemode.
|
if the ellipsis is placed correctly according to elidemode.
|
||||||
"""
|
"""
|
||||||
|
fake_statusbar.container.expose()
|
||||||
|
|
||||||
label = TextBase(elidemode=elidemode)
|
label = TextBase(elidemode=elidemode)
|
||||||
qtbot.add_widget(label)
|
qtbot.add_widget(label)
|
||||||
fake_statusbar.hbox.addWidget(label)
|
fake_statusbar.hbox.addWidget(label)
|
||||||
|
Loading…
Reference in New Issue
Block a user