summaryrefslogtreecommitdiff
path: root/tests/unit/browser/test_history.py
diff options
context:
space:
mode:
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 829a7e6de..cac167028 100644
--- a/tests/unit/browser/test_history.py
+++ b/tests/unit/browser/test_history.py
@@ -479,6 +479,12 @@ class TestCompletionMetaInfo:
def test_contains(self, metainfo):
assert 'excluded_patterns' in metainfo
+ def test_delete_old_key(self, monkeypatch, metainfo):
+ metainfo.insert({'key': 'force_rebuild', 'value': False})
+ info2 = history.CompletionMetaInfo()
+ monkeypatch.setitem(info2.KEYS, 'force_rebuild', False)
+ assert 'force_rebuild' not in info2
+
def test_modify(self, metainfo):
assert not metainfo['excluded_patterns']
value = 'https://example.com/'