Don't open any error pages in test_invocations

This commit is contained in:
Florian Bruhin 2018-09-18 17:25:24 +02:00
parent 46435bcd2f
commit c56b950cc5

View File

@ -65,9 +65,16 @@ def temp_basedir_env(tmpdir, short_tmpdir):
runtime_dir.ensure(dir=True)
runtime_dir.chmod(0o700)
(data_dir / 'qutebrowser' / 'state').write_text(
'[general]\nquickstart-done = 1\nbackend-warning-shown=1',
encoding='utf-8', ensure=True)
lines = [
'[general]',
'quickstart-done = 1',
'backend-warning-shown = 1',
'old-qt-warning-shown = 1',
'webkit-warning-shown = 1',
]
state_file = data_dir / 'qutebrowser' / 'state'
state_file.write_text('\n'.join(lines), encoding='utf-8', ensure=True)
env = {
'XDG_DATA_HOME': str(data_dir),