summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2019-03-18 11:41:24 +0100
committerFlorian Bruhin <me@the-compiler.org>2019-03-18 11:45:04 +0100
commit4a7e8017f89596a32abf5c395610c1472d16d431 (patch)
treefacc26af3d3a52887ae3df1cc1b7c6ccd1ec68a0
parentb84c306fe9e170907a9131e8cf926f33865a6f80 (diff)
downloadqutebrowser-4a7e8017f89596a32abf5c395610c1472d16d431.tar.gz
qutebrowser-4a7e8017f89596a32abf5c395610c1472d16d431.zip
Run testdata_scheme fixture early
Otherwise it might be too late to register the scheme.
-rw-r--r--tests/helpers/fixtures.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/helpers/fixtures.py b/tests/helpers/fixtures.py
index f51f221a3..f762ab110 100644
--- a/tests/helpers/fixtures.py
+++ b/tests/helpers/fixtures.py
@@ -165,7 +165,7 @@ def greasemonkey_manager(data_tmpdir):
objreg.delete('greasemonkey')
-@pytest.fixture(scope='session')
+@pytest.fixture(scope='session', autouse=True)
def testdata_scheme(qapp):
try:
global _qute_scheme_handler
@@ -192,8 +192,7 @@ def testdata_scheme(qapp):
@pytest.fixture
def web_tab_setup(qtbot, tab_registry, session_manager_stub,
- greasemonkey_manager, fake_args, config_stub,
- testdata_scheme):
+ greasemonkey_manager, fake_args, config_stub):
"""Shared setup for webkit_tab/webengine_tab."""
# Make sure error logging via JS fails tests
config_stub.val.content.javascript.log = {