Fix test_history.

History doesn't depend on standarddir anymore, the history file path get passed
by app.py.
This commit is contained in:
Ryan Roden-Corrent 2017-04-08 17:24:11 -04:00
parent f110cf4d53
commit e661fb7446

View File

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