summaryrefslogtreecommitdiff
path: root/tests/unit/browser/test_history.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2018-08-31 22:28:18 +0200
committerFlorian Bruhin <me@the-compiler.org>2018-09-01 18:25:58 +0200
commit806d65be8e117fcf410f98c7da85e2d26e4d3c07 (patch)
tree7cbcaf1ae0e15d339edc9f575ca94b319b0ba503 /tests/unit/browser/test_history.py
parentc2f8b6531d1182d32811560dbdbfeddb433603c5 (diff)
downloadqutebrowser-806d65be8e117fcf410f98c7da85e2d26e4d3c07.tar.gz
qutebrowser-806d65be8e117fcf410f98c7da85e2d26e4d3c07.zip
Add test for no-sql-history flag
Diffstat (limited to 'tests/unit/browser/test_history.py')
-rw-r--r--tests/unit/browser/test_history.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/browser/test_history.py b/tests/unit/browser/test_history.py
index 300435271..0f71b0488 100644
--- a/tests/unit/browser/test_history.py
+++ b/tests/unit/browser/test_history.py
@@ -173,6 +173,12 @@ class TestAdd:
else:
assert list(hist.completion) == [(completion_url, title, atime)]
+ def test_no_sql_history(self, hist, fake_args):
+ fake_args.debug_flags = 'no-sql-history'
+ hist.add_url(QUrl('https://www.example.com/'), atime=12346,
+ title='Hello World', redirect=False)
+ assert not list(hist)
+
def test_invalid(self, qtbot, hist, caplog):
with caplog.at_level(logging.WARNING):
hist.add_url(QUrl())