1
0
forked from VimPlug/jedi

Test full name for os.path imports. Fixes #873.

This commit is contained in:
Dave Halter
2017-04-05 00:59:50 +02:00
parent fe5eaaf56c
commit 4b841370e4
2 changed files with 18 additions and 4 deletions

View File

@@ -89,3 +89,10 @@ def test_sub_module():
assert [d.full_name for d in defs] == ['jedi.api.classes']
defs = jedi.Script('import jedi.api; jedi.api').goto_definitions()
assert [d.full_name for d in defs] == ['jedi.api']
def test_os_path():
d, = jedi.Script('from os.path import join').completions()
assert d.full_name == 'os.path.join'
d, = jedi.Script('import os.p').completions()
assert d.full_name == 'os.path'