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.
This commit is contained in:
Florian Bruhin 2016-03-15 08:29:33 +01:00
parent 569e7b11fb
commit ed3fd71e6f

View File

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