Don't open any error pages in test_invocations
This commit is contained in:
parent
46435bcd2f
commit
c56b950cc5
@ -65,9 +65,16 @@ def temp_basedir_env(tmpdir, short_tmpdir):
|
|||||||
runtime_dir.ensure(dir=True)
|
runtime_dir.ensure(dir=True)
|
||||||
runtime_dir.chmod(0o700)
|
runtime_dir.chmod(0o700)
|
||||||
|
|
||||||
(data_dir / 'qutebrowser' / 'state').write_text(
|
lines = [
|
||||||
'[general]\nquickstart-done = 1\nbackend-warning-shown=1',
|
'[general]',
|
||||||
encoding='utf-8', ensure=True)
|
'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 = {
|
env = {
|
||||||
'XDG_DATA_HOME': str(data_dir),
|
'XDG_DATA_HOME': str(data_dir),
|
||||||
|
Loading…
Reference in New Issue
Block a user