From 0a25bb508aea744f6e05b3dd71af2247df430031 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 10 Jun 2016 12:21:48 +0200 Subject: [PATCH] Fix lint --- tests/unit/browser/test_history.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/unit/browser/test_history.py b/tests/unit/browser/test_history.py index 2c743896f..e1f90e671 100644 --- a/tests/unit/browser/test_history.py +++ b/tests/unit/browser/test_history.py @@ -51,10 +51,6 @@ def hist(tmpdir): return history.WebHistory(hist_dir=str(tmpdir), hist_name='history') -def test_init(hist, fake_save_manager): - assert fake_save_manager.add_saveable.called - - def test_async_read_twice(monkeypatch, qtbot, tmpdir, caplog): (tmpdir / 'filled-history').write('\n'.join([ '12345 http://example.com/ title', @@ -91,7 +87,8 @@ def test_adding_item_during_async_read(qtbot, hist, hidden): with qtbot.waitSignal(hist.async_read_done): list(hist.async_read()) else: - with qtbot.waitSignals([hist.add_completion_item, hist.async_read_done]): + with qtbot.waitSignals([hist.add_completion_item, + hist.async_read_done]): list(hist.async_read()) assert not hist._temp_history @@ -356,9 +353,10 @@ def test_history_interface(qtbot, webview, hist_interface): webview.load(url) -def test_init(qapp, tmpdir, monkeypatch): +def test_init(qapp, tmpdir, monkeypatch, fake_save_manager): monkeypatch.setattr(history.standarddir, 'data', lambda: str(tmpdir)) history.init(qapp) hist = objreg.get('web-history') assert hist.parent() is qapp assert QWebHistoryInterface.defaultInterface()._history is hist + assert fake_save_manager.add_saveable.called