summaryrefslogtreecommitdiff
path: root/tests/unit/completion/test_models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/completion/test_models.py')
-rw-r--r--tests/unit/completion/test_models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/completion/test_models.py b/tests/unit/completion/test_models.py
index 837298550..e0bce8f04 100644
--- a/tests/unit/completion/test_models.py
+++ b/tests/unit/completion/test_models.py
@@ -1310,11 +1310,11 @@ def test_url_completion_benchmark(benchmark, info,
web_history.completion.insert_batch(entries)
quickmark_manager_stub.marks = collections.OrderedDict([
- ('title{}'.format(i), 'example.com/{}'.format(i))
+ ('title{}'.format('a'*i), 'example.com/{}'.format(i))
for i in range(1000)])
bookmark_manager_stub.marks = collections.OrderedDict([
- ('example.com/{}'.format(i), 'title{}'.format(i))
+ ('example.com/{}'.format('a'*i), 'title{}'.format(i))
for i in range(1000)])
def bench():
@@ -1326,6 +1326,7 @@ def test_url_completion_benchmark(benchmark, info,
model.set_pattern('ex 1')
model.set_pattern('ex 12')
model.set_pattern('ex 123')
+ model.set_pattern('zzzzz') # no match
benchmark(bench)