From bd0dfb88fdf5714833466787fd73edaff9740a73 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Mar 2021 20:03:25 +0100 Subject: Merging upstream version 1.6.0. Signed-off-by: Daniel Baumann --- tests/test_smart_completion_public_schema_only.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'tests/test_smart_completion_public_schema_only.py') 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))) ) -- cgit v1.2.3