diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-03-17 19:03:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-03-17 19:03:18 +0000 |
commit | 3e2509d4c8e0cdbe9c3c39a802f1086701f613dc (patch) | |
tree | 6e5bfbb597f089825b8931c9f4528ef59c08d4c2 /tests/test_smart_completion_public_schema_only.py | |
parent | Adding upstream version 1.5.0. (diff) | |
download | litecli-upstream/1.6.0.tar.xz litecli-upstream/1.6.0.zip |
Adding upstream version 1.6.0.upstream/1.6.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/test_smart_completion_public_schema_only.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/test_smart_completion_public_schema_only.py b/tests/test_smart_completion_public_schema_only.py index ea5c580..e532118 100644 --- a/tests/test_smart_completion_public_schema_only.py +++ b/tests/test_smart_completion_public_schema_only.py @@ -367,15 +367,17 @@ def test_auto_escaped_col_names(completer, complete_event): Document(text=text, cursor_position=position), complete_event ) ) - assert result == [ - Completion(text="*", start_position=0), - Completion(text="`ABC`", start_position=0), - Completion(text="`insert`", start_position=0), - Completion(text="id", start_position=0), - ] + list(map(Completion, completer.functions)) + [ - Completion(text="`select`", start_position=0) - ] + list( - map(Completion, sorted(completer.keywords)) + assert ( + result + == [ + Completion(text="*", start_position=0), + Completion(text="`ABC`", start_position=0), + Completion(text="`insert`", start_position=0), + Completion(text="id", start_position=0), + ] + + list(map(Completion, completer.functions)) + + [Completion(text="`select`", start_position=0)] + + list(map(Completion, sorted(completer.keywords))) ) |