diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-05-27 17:13:30 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-05-27 17:13:30 +0200 |
commit | fec1b303bfb92402d0f154360d0f23d659ddb8c6 (patch) | |
tree | 9f3253bfccb8d1d166a78ea5a5ed1ffcb90290bc /tests/unit | |
parent | 723c061271987d76f9043735e98c5f8fbb604068 (diff) | |
download | qutebrowser-fec1b303bfb92402d0f154360d0f23d659ddb8c6.tar.gz qutebrowser-fec1b303bfb92402d0f154360d0f23d659ddb8c6.zip |
Make test_configinit work again with all platforms
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/config/test_configinit.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/unit/config/test_configinit.py b/tests/unit/config/test_configinit.py index 25c6ce85e..2e149fa70 100644 --- a/tests/unit/config/test_configinit.py +++ b/tests/unit/config/test_configinit.py @@ -705,6 +705,7 @@ class TestQtArgs: assert ('--force-dark-mode' in args) == added + @utils.qt514 def test_blink_settings(self, config_stub, monkeypatch, parser): monkeypatch.setattr(configinit.objects, 'backend', usertypes.Backend.QtWebEngine) @@ -722,6 +723,13 @@ class TestQtArgs: class TestDarkMode: + pytestmark = utils.qt514 + + @pytest.fixture(autouse=True) + def patch_backend(self, monkeypatch): + monkeypatch.setattr(configinit.objects, 'backend', + usertypes.Backend.QtWebEngine) + @pytest.mark.parametrize('settings, new_qt, expected', [ # Disabled ({}, True, []), @@ -753,7 +761,6 @@ class TestDarkMode: ), ]) - @utils.qt514 def test_basics(self, config_stub, monkeypatch, settings, new_qt, expected): for k, v in settings.items(): @@ -791,7 +798,6 @@ class TestDarkMode: expected = [('darkModeEnabled', 'true'), (exp_key, exp_val)] assert list(configinit._darkmode_settings()) == expected - @utils.qt514 def test_new_chromium(self): """Fail if we encounter an unknown Chromium version. |