summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2022-08-13 17:16:00 -0700
committerAmjith Ramanujam <amjith.r@gmail.com>2022-08-13 17:16:00 -0700
commit78e4740ca30d9f355cd6918a1526b3eb896232c9 (patch)
tree56b79f5808fa6fa13c75abe038c3c0c2bbca17a2
parent7b586f253fbad137dba0976d47115403d7d0e0fd (diff)
Update tests.
-rw-r--r--test/test_completion_refresher.py2
-rw-r--r--test/test_naive_completion.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test_completion_refresher.py b/test/test_completion_refresher.py
index cdc2fb5..31359cf 100644
--- a/test/test_completion_refresher.py
+++ b/test/test_completion_refresher.py
@@ -19,7 +19,7 @@ def test_ctor(refresher):
assert len(refresher.refreshers) > 0
actual_handlers = list(refresher.refreshers.keys())
expected_handlers = ['databases', 'schemata', 'tables', 'users', 'functions',
- 'special_commands', 'show_commands']
+ 'special_commands', 'show_commands', 'keywords']
assert expected_handlers == actual_handlers
diff --git a/test/test_naive_completion.py b/test/test_naive_completion.py
index 32b2abd..da91749 100644
--- a/test/test_naive_completion.py
+++ b/test/test_naive_completion.py
@@ -21,7 +21,7 @@ def test_empty_string_completion(completer, complete_event):
result = list(completer.get_completions(
Document(text=text, cursor_position=position),
complete_event))
- assert result == list(map(Completion, sorted(completer.all_completions)))
+ assert result == list(map(Completion, completer.all_completions))
def test_select_keyword_completion(completer, complete_event):
@@ -50,7 +50,7 @@ def test_column_name_completion(completer, complete_event):
result = list(completer.get_completions(
Document(text=text, cursor_position=position),
complete_event))
- assert result == list(map(Completion, sorted(completer.all_completions)))
+ assert result == list(map(Completion, completer.all_completions))
def test_special_name_completion(completer, complete_event):