Clear BDD process settings between each test

Fixes #1310
This commit is contained in:
Florian Bruhin 2017-10-03 13:38:16 +02:00
parent 9383452ab9
commit 2f9d1875cd
2 changed files with 10 additions and 1 deletions

View File

@ -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'),

View File

@ -47,6 +47,9 @@ class FakeConfig:
'--verbose': False,
}
def __init__(self):
self.webengine = False
def getoption(self, name):
return self.ARGS[name]