summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoofar <toofar@spalge.com>2023-09-25 19:06:03 +1300
committertoofar <toofar@spalge.com>2023-09-25 19:06:03 +1300
commitfde4dd84345dd5b42c8aa178a56da952a6ba0cfd (patch)
treea446ad75e922c3e95e6e71c68aa2c3d07afecc83
parent4927534a6898fb3d6bea7f7c2b4ee0b42650a0c1 (diff)
downloadqutebrowser-fde4dd84345dd5b42c8aa178a56da952a6ba0cfd.tar.gz
qutebrowser-fde4dd84345dd5b42c8aa178a56da952a6ba0cfd.zip
Put qt.arg test back to being exact match
I previously changed the assertion to be a subset match, to deal with a qt arg being added based on the Qt version the tests were being run on. I didn't notice this fixture that can set setting to avoid that dynamic-ness instead.
-rw-r--r--tests/unit/config/test_qtargs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/config/test_qtargs.py b/tests/unit/config/test_qtargs.py
index 18edb745f..419faad12 100644
--- a/tests/unit/config/test_qtargs.py
+++ b/tests/unit/config/test_qtargs.py
@@ -51,6 +51,7 @@ def reduce_args(config_stub, version_patcher, monkeypatch):
config_stub.val.content.headers.referer = 'always'
config_stub.val.scrolling.bar = 'never'
config_stub.val.qt.chromium.experimental_web_platform_features = 'never'
+ config_stub.val.qt.workarounds.disable_accelerated_2d_canvas = 'never'
monkeypatch.setattr(qtargs.utils, 'is_mac', False)
# Avoid WebRTC pipewire feature
monkeypatch.setattr(qtargs.utils, 'is_linux', False)
@@ -77,7 +78,7 @@ class TestQtArgs:
def test_qt_args(self, monkeypatch, config_stub, args, expected, parser):
"""Test commandline with no Qt arguments given."""
parsed = parser.parse_args(args)
- assert qtargs.qt_args(parsed) >= expected
+ assert qtargs.qt_args(parsed) == expected
def test_qt_both(self, config_stub, parser):
"""Test commandline with a Qt argument and flag."""