mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-29 00:16:52 +08:00
again import tests
This commit is contained in:
@@ -78,6 +78,9 @@ import import_tree
|
||||
#! ['module mod1']
|
||||
import import_tree.mod1
|
||||
|
||||
#! ['module mod1']
|
||||
import import_tree.pkg.mod1
|
||||
|
||||
#! ['module mod1']
|
||||
from import_tree import mod1
|
||||
|
||||
|
||||
1
test/completion/import_tree/pkg/__init__.py
Normal file
1
test/completion/import_tree/pkg/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
a = list
|
||||
1
test/completion/import_tree/pkg/mod1.py
Normal file
1
test/completion/import_tree/pkg/mod1.py
Normal file
@@ -0,0 +1 @@
|
||||
a = 1.0
|
||||
@@ -22,7 +22,7 @@ def scope_basic():
|
||||
#? []
|
||||
import_tree.mod1
|
||||
|
||||
def scope_nested():
|
||||
def scope_pkg():
|
||||
import import_tree.mod1
|
||||
|
||||
#? str()
|
||||
@@ -34,6 +34,24 @@ def scope_nested():
|
||||
#? int()
|
||||
import_tree.mod1.a
|
||||
|
||||
def scope_nested():
|
||||
import import_tree.pkg.mod1
|
||||
|
||||
#? str()
|
||||
import_tree.a
|
||||
|
||||
#? list
|
||||
import_tree.pkg.a
|
||||
|
||||
#? ['a', 'pkg']
|
||||
import_tree.
|
||||
|
||||
#? float()
|
||||
import_tree.pkg.mod1.a
|
||||
|
||||
#? ['a', 'pkg']
|
||||
import_tree.
|
||||
|
||||
# -----------------
|
||||
# std lib modules
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user