parent
9383452ab9
commit
2f9d1875cd
@ -494,7 +494,13 @@ class QuteProc(testprocess.Process):
|
|||||||
if skip_texts:
|
if skip_texts:
|
||||||
pytest.skip(', '.join(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."""
|
"""Adjust some qutebrowser settings after starting."""
|
||||||
settings = [
|
settings = [
|
||||||
('messages.timeout', '0'),
|
('messages.timeout', '0'),
|
||||||
|
@ -47,6 +47,9 @@ class FakeConfig:
|
|||||||
'--verbose': False,
|
'--verbose': False,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.webengine = False
|
||||||
|
|
||||||
def getoption(self, name):
|
def getoption(self, name):
|
||||||
return self.ARGS[name]
|
return self.ARGS[name]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user