From 806d65be8e117fcf410f98c7da85e2d26e4d3c07 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 31 Aug 2018 22:28:18 +0200 Subject: [PATCH] Add test for no-sql-history flag --- tests/unit/browser/test_history.py | 6 ++++++ 1 file changed, 6 insertions(+) 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())