From fde4dd84345dd5b42c8aa178a56da952a6ba0cfd Mon Sep 17 00:00:00 2001 From: toofar Date: Mon, 25 Sep 2023 19:06:03 +1300 Subject: 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. --- tests/unit/config/test_qtargs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.""" -- cgit v1.2.3-54-g00ecf