summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-12-04 19:46:51 +0100
committerFlorian Bruhin <me@the-compiler.org>2023-12-04 19:55:06 +0100
commitb40e1861c3aaa4b2336b5eff64f0fd2f9fe5b9d2 (patch)
tree3c1a8a9bf13679ec961cd5b67b320f58fbc25947 /tests
parent383f8a2e8258ab41c4d2285e940ea1d975d0d8e6 (diff)
downloadqutebrowser-b40e1861c3aaa4b2336b5eff64f0fd2f9fe5b9d2.tar.gz
qutebrowser-b40e1861c3aaa4b2336b5eff64f0fd2f9fe5b9d2.zip
Fix lint and tests
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/config/test_qtargs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/config/test_qtargs.py b/tests/unit/config/test_qtargs.py
index d8980bb53..d7a95aad1 100644
--- a/tests/unit/config/test_qtargs.py
+++ b/tests/unit/config/test_qtargs.py
@@ -75,9 +75,10 @@ class TestQtArgs:
(['--qt-flag', 'foo', '--qt-flag', 'bar'],
[sys.argv[0], '--foo', '--bar']),
])
- def test_qt_args(self, monkeypatch, config_stub, args, expected, parser):
+ def test_qt_args(self, request, monkeypatch, config_stub, args, expected, parser):
"""Test commandline with no Qt arguments given."""
- expected.append("--touch-events=disabled") # passed unconditionally
+ if request.config.webengine:
+ expected.append("--touch-events=disabled") # passed unconditionally
parsed = parser.parse_args(args)
assert qtargs.qt_args(parsed) == expected