summaryrefslogtreecommitdiffstats
path: root/tests/test_smart_completion_public_schema_only.py
diff options
context:
space:
mode:
authorkoljonen <koljonen@outlook.com>2016-05-16 13:48:46 +0200
committerkoljonen <koljonen@outlook.com>2016-05-16 13:48:46 +0200
commit8e24cd41dc0e357b4db3c9cb91bd56bc9ad1dc1c (patch)
treebc98e00b1d1fdfa2784245697a9080c186b4a826 /tests/test_smart_completion_public_schema_only.py
parentfffa740fbcb7b6742b54ffb693ac38951f09587e (diff)
Various small changes after code review
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):