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.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/test_smart_completion_public_schema_only.py b/tests/test_smart_completion_public_schema_only.py
index 2f5e3ab8..7a1f573d 100644
--- a/tests/test_smart_completion_public_schema_only.py
+++ b/tests/test_smart_completion_public_schema_only.py
@@ -602,13 +602,11 @@ def test_wildcard_column_expansion_with_two_tables(completer, complete_event):
Document(text=sql, cursor_position=pos), complete_event)
# The order of the tables is indeterministic, so allwo both possibilities
- cols1 = '"select".id, "select"."insert", "select"."ABC"'
- cols2 = 'u.id, u.email, u.first_name, u.last_name'
- expected = (Completion(text=text, start_position=-1,
- display='*', display_meta='columns')
- for text in (cols1 + ', ' + cols2, cols2 + ', ' + cols1))
- assert len(completions) == 1
- assert completions[0] in expected
+ cols = ('"select".id, "select"."insert", "select"."ABC", '
+ 'u.id, u.email, u.first_name, u.last_name')
+ expected = [Completion(text=cols, start_position=-1,
+ display='*', display_meta='columns')]
+ assert completions == expected
def test_wildcard_column_expansion_with_two_tables_and_parent(completer, complete_event):