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.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/unit/completion/test_models.py b/tests/unit/completion/test_models.py
index 45506fe6a..c20fe293c 100644
--- a/tests/unit/completion/test_models.py
+++ b/tests/unit/completion/test_models.py
@@ -462,8 +462,7 @@ def test_filesystem_completion_model_interface(info, local_files_path):
@hypothesis.given(
as_uri=hst.booleans(),
add_sep=hst.booleans(),
- text=hst.text(alphabet=hst.characters(
- blacklist_categories=['Cc'], blacklist_characters='\x00')),
+ text=hst.text(),
)
def test_filesystem_completion_hypothesis(info, as_uri, add_sep, text):
if as_uri:
@@ -475,6 +474,12 @@ def test_filesystem_completion_hypothesis(info, as_uri, add_sep, text):
model.set_pattern(text)
+@pytest.mark.parametrize('text', ['~\ud800', '~\x00'])
+def test_filesystem_completion_corner_cases(info, text):
+ model = filepathcategory.FilePathCategory('filepaths')
+ model.set_pattern(text)
+
+
def test_default_filesystem_completion(qtmodeltester, config_stub, info,
web_history_populated, quickmarks, bookmarks,
local_files_path):