diff options
author | Florian Bruhin <me@the-compiler.org> | 2018-10-06 19:04:28 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2018-10-06 19:06:34 +0200 |
commit | f63eb8ea15335dd34ee5403332dec39dacdf0f7b (patch) | |
tree | c70306b91003d0e8e04e0f2ed53572997f9750c6 /tests/unit/mainwindow | |
parent | e01976277bffb7e0b310f49faa40f9847cf5a03d (diff) | |
download | qutebrowser-f63eb8ea15335dd34ee5403332dec39dacdf0f7b.tar.gz qutebrowser-f63eb8ea15335dd34ee5403332dec39dacdf0f7b.zip |
Avoid showing widgets in tests if unneeded
This avoids odd X errors with test_webenginetab.py, and also makes it run much
faster (0.8s instead of 1.3s).
Diffstat (limited to 'tests/unit/mainwindow')
-rw-r--r-- | tests/unit/mainwindow/statusbar/test_progress.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/mainwindow/statusbar/test_progress.py b/tests/unit/mainwindow/statusbar/test_progress.py index 6d054a5c9..5b01aebbf 100644 --- a/tests/unit/mainwindow/statusbar/test_progress.py +++ b/tests/unit/mainwindow/statusbar/test_progress.py @@ -79,6 +79,8 @@ def test_progress_affecting_statusbar_height(config_stub, fake_statusbar, # For some reason on Windows, with Courier, there's a 1px difference. config_stub.val.fonts.statusbar = '8pt Monospace' + fake_statusbar.container.expose() + expected_height = fake_statusbar.fontMetrics().height() assert fake_statusbar.height() == expected_height |