Fix test_history.
History doesn't depend on standarddir anymore, the history file path get passed by app.py.
This commit is contained in:
parent
f110cf4d53
commit
e661fb7446
@ -179,7 +179,6 @@ def test_init(backend, qapp, tmpdir, monkeypatch, cleanup_init):
|
|||||||
else:
|
else:
|
||||||
assert backend == usertypes.Backend.QtWebEngine
|
assert backend == usertypes.Backend.QtWebEngine
|
||||||
|
|
||||||
monkeypatch.setattr(history.standarddir, 'data', lambda: str(tmpdir))
|
|
||||||
monkeypatch.setattr(history.objects, 'backend', backend)
|
monkeypatch.setattr(history.objects, 'backend', backend)
|
||||||
history.init(qapp)
|
history.init(qapp)
|
||||||
hist = objreg.get('web-history')
|
hist = objreg.get('web-history')
|
||||||
|
Loading…
Reference in New Issue
Block a user