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.
This commit is contained in:
toofar 2023-09-25 19:06:03 +13:00
parent 4927534a68
commit fde4dd8434
1 changed files with 2 additions and 1 deletions

View File

@ -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."""