def test_progress_affecting_statusbar_height(fake_statusbar, progress_widget):
 expected_height = fake_statusbar.fontMetrics().height()
 assert (fake_statusbar.height() == expected_height)
 fake_statusbar.hbox.addWidget(progress_widget)
 progress_widget.show()
 assert (fake_statusbar.height() == expected_height)

def test_progress_affecting_statusbar_height ( fake_statusbar , progress_widget ) : expected_height = fake_statusbar . fontMetrics ( ) . height ( ) assert ( fake_statusbar . height ( ) == expected_height ) fake_statusbar . hbox . addWidget ( progress_widget ) progress_widget . show ( ) assert ( fake_statusbar . height ( ) == expected_height )
make sure the statusbar stays the same height when progress is shown .