mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-11 09:19:11 +08:00
Use complete instead of completions in test_api/
This commit is contained in:
1 parent
2b5af19989
commit
38460ce9d7
11 files changed
+71
-71
No files matched your search
@@ -103,12 +103,12 @@ def test_sub_module(Script, jedi_path):
|
||||
|
||||
|
||||
def test_os_path(Script):
|
||||
d, = Script('from os.path import join').completions()
|
||||
d, = Script('from os.path import join').complete()
|
||||
assert d.full_name == 'os.path.join'
|
||||
d, = Script('import os.p').completions()
|
||||
d, = Script('import os.p').complete()
|
||||
assert d.full_name == 'os.path'
|
||||
|
||||
|
||||
def test_os_issues(Script):
|
||||
"""Issue #873"""
|
||||
assert [c.name for c in Script('import os\nos.nt''').completions()] == ['nt']
|
||||
assert [c.name for c in Script('import os\nos.nt''').complete()] == ['nt']
|
||||
Reference in new issue
Block a user