diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index 73f885cfe..bc6208e36 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -494,7 +494,13 @@ class QuteProc(testprocess.Process): if skip_texts: pytest.skip(', '.join(skip_texts)) - def _after_start(self): + def before_test(self): + """Clear settings before every test.""" + super().before_test() + self.send_cmd(':config-clear') + self._init_settings() + + def _init_settings(self): """Adjust some qutebrowser settings after starting.""" settings = [ ('messages.timeout', '0'), diff --git a/tests/end2end/fixtures/test_quteprocess.py b/tests/end2end/fixtures/test_quteprocess.py index 39cbe598c..b537960f4 100644 --- a/tests/end2end/fixtures/test_quteprocess.py +++ b/tests/end2end/fixtures/test_quteprocess.py @@ -47,6 +47,9 @@ class FakeConfig: '--verbose': False, } + def __init__(self): + self.webengine = False + def getoption(self, name): return self.ARGS[name]