summaryrefslogtreecommitdiffstats
path: root/tests/test_smart_completion_public_schema_only.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_smart_completion_public_schema_only.py')
-rw-r--r--tests/test_smart_completion_public_schema_only.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_smart_completion_public_schema_only.py b/tests/test_smart_completion_public_schema_only.py
index 76424610..3ccac9e5 100644
--- a/tests/test_smart_completion_public_schema_only.py
+++ b/tests/test_smart_completion_public_schema_only.py
@@ -99,7 +99,7 @@ def test_drop_alter_function(completer, action):
@parametrize('completer', completers())
def test_empty_string_completion(completer):
result = result_set(completer, '')
- assert set(testdata.keywords()) == result
+ assert set(testdata.keywords() + testdata.specials()) == result
@parametrize('completer', completers())
@@ -929,3 +929,10 @@ def test_set_schema(completer):
result = result_set(completer, text)
expected = set([schema(u"'public'")])
assert result == expected
+
+
+@parametrize('completer', completers())
+def test_special_name_completion(completer):
+ result = result_set(completer, '\\t')
+ assert result == set([Completion(
+ text='\\timing', start_position=-2, display_meta='Toggle timing of commands.')])