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:
parent
569e7b11fb
commit
ed3fd71e6f
@ -50,6 +50,8 @@ def test_elided_text(fake_statusbar, qtbot, elidemode, check):
|
|||||||
|
|
||||||
long_string = 'Hello world! ' * 100
|
long_string = 'Hello world! ' * 100
|
||||||
label.setText(long_string)
|
label.setText(long_string)
|
||||||
|
label.show()
|
||||||
|
qtbot.waitForWindowShown(label)
|
||||||
|
|
||||||
assert check(label._elided_text)
|
assert check(label._elided_text)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user