mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 15:24:46 +08:00
Make the completions possible for Interpreter objects
This commit is contained in:
@@ -342,7 +342,7 @@ def test_dict_keys_completions(Script, added_code, column, expected, skip_pre_py
|
||||
keywords = {None: 1, False: 2, "a": 3}
|
||||
''')
|
||||
line = None
|
||||
comps = Script(code + added_code, line=line, column=column).completions()
|
||||
comps = Script(code + added_code).complete(line=line, column=column)
|
||||
if Ellipsis in expected:
|
||||
# This means that global completions are part of this, so filter all of
|
||||
# that out.
|
||||
@@ -365,4 +365,4 @@ def test_fuzzy_match():
|
||||
|
||||
|
||||
def test_ellipsis_completion(Script):
|
||||
assert Script('...').completions() == []
|
||||
assert Script('...').complete() == []
|
||||
|
||||
Reference in New Issue
Block a user