diff options
author | Anthony Lai <anthony@mixbook.com> | 2016-03-22 22:08:21 -0700 |
---|---|---|
committer | Anthony Lai <anthony@mixbook.com> | 2016-03-22 22:08:21 -0700 |
commit | eb3ef2e143adfdc779489a7daab3a99c572bf08c (patch) | |
tree | 7357d2004f2e24ce3ec0664a70ee69fa0fef043e /tests/test_smart_completion_public_schema_only.py | |
parent | 6a8b054793b94dcabcb37dfa304fbe758168c639 (diff) |
unescape completion names for lexical priority
Diffstat (limited to 'tests/test_smart_completion_public_schema_only.py')
-rw-r--r-- | tests/test_smart_completion_public_schema_only.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_smart_completion_public_schema_only.py b/tests/test_smart_completion_public_schema_only.py index fce9b9e7..36ca6203 100644 --- a/tests/test_smart_completion_public_schema_only.py +++ b/tests/test_smart_completion_public_schema_only.py @@ -385,7 +385,14 @@ def test_table_names_after_from_are_lexical_ordered_by_text(completer, complete_ result = completer.get_completions( Document(text=text, cursor_position=position), complete_event) - assert result == sorted(result, key=lambda c: c.text) + assert [c.text for c in result] == [ + 'orders', + 'public', + '"select"', + 'set_returning_func', + 'user_emails', + 'users' + ] def test_auto_escaped_col_names(completer, complete_event): text = 'SELECT from "select"' |