summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2016-06-10 12:21:48 +0200
committerFlorian Bruhin <git@the-compiler.org>2016-06-10 12:21:48 +0200
commit0a25bb508aea744f6e05b3dd71af2247df430031 (patch)
treedf10997bceae769e517a57bfce0944ba8a9ea37e
parent9298fa697bb6e3ca43a3f08e09623f1d3f645121 (diff)
downloadqutebrowser-0a25bb508aea744f6e05b3dd71af2247df430031.tar.gz
qutebrowser-0a25bb508aea744f6e05b3dd71af2247df430031.zip
Fix lint
-rw-r--r--tests/unit/browser/test_history.py10
1 files 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