diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2022-08-13 18:24:05 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2022-08-13 18:24:05 -0700 |
commit | 80fe775842ae71e6277c9bbdb81824c83b937a9e (patch) | |
tree | 17c82771db3003bf14c1ef09c75f108495708410 | |
parent | 7b1c0baaccca90910bd263758a8023a22346fbd4 (diff) |
Fix the test.
-rw-r--r-- | test/test_naive_completion.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/test_naive_completion.py b/test/test_naive_completion.py index f04e931..0bc3bf8 100644 --- a/test/test_naive_completion.py +++ b/test/test_naive_completion.py @@ -39,10 +39,7 @@ def test_function_name_completion(completer, complete_event): result = list(completer.get_completions( Document(text=text, cursor_position=position), complete_event)) - assert result == list([ - Completion(text='MAX', start_position=-2), - Completion(text='MASTER', start_position=-2), - ]) + assert sorted(x.text for x in result) == ["MASTER", "MAX"] def test_column_name_completion(completer, complete_event): |