1
0
forked from VimPlug/jedi

Simplify completions further to eventually get rid of user_context.

This commit is contained in:
Dave Halter
2016-06-22 09:15:32 +02:00
parent 80aa9ad079
commit 1355ea01b3
2 changed files with 45 additions and 43 deletions

View File

@@ -62,7 +62,8 @@ def _check_number(source, result='float'):
def test_completion_on_number_literals():
# No completions on an int literal (is a float).
assert api.Script('1.').completions() == []
assert [c.name for c in api.Script('1.').completions()] \
== ['and', 'if', 'in', 'is', 'not', 'or']
# Multiple points after an int literal basically mean that there's a float
# and a call after that.