forked from VimPlug/jedi
Move get_module_contexts_containing_name to the references module
This commit is contained in:
5
test/completion/import_tree/references.py
Normal file
5
test/completion/import_tree/references.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from ..usages import usage_definition
|
||||
|
||||
|
||||
def x():
|
||||
usage_definition()
|
||||
@@ -75,7 +75,7 @@ from import_tree.pkg.mod1 import not_existant, # whitespace before
|
||||
from import_tree.pkg.mod1 import not_existant,
|
||||
#? 22 ['mod1', 'base']
|
||||
from import_tree.pkg. import mod1
|
||||
#? 17 ['mod1', 'mod2', 'random', 'pkg', 'rename1', 'rename2', 'classes', 'globals', 'recurse_class1', 'recurse_class2', 'invisible_pkg', 'flow_import']
|
||||
#? 17 ['mod1', 'mod2', 'random', 'pkg', 'references', 'rename1', 'rename2', 'classes', 'globals', 'recurse_class1', 'recurse_class2', 'invisible_pkg', 'flow_import']
|
||||
from import_tree. import pkg
|
||||
|
||||
#? 18 ['pkg']
|
||||
|
||||
@@ -367,3 +367,13 @@ in_python
|
||||
from stub_folder.with_stub_folder.nested_with_stub import in_both
|
||||
#< ('stub_folder.with_stub_folder.nested_with_stub', 2, 0), ('stub:stub_folder.with_stub_folder.nested_with_stub', 2, 0), ('stubs', 66, 17), (-2, 58), (0, 0)
|
||||
in_both
|
||||
|
||||
# -----------------
|
||||
# across directories
|
||||
# -----------------
|
||||
|
||||
#< 8 (0, 0), (3, 4), ('import_tree.references', 1, 21), ('import_tree.references', 5, 4)
|
||||
usage_definition = 1
|
||||
if False:
|
||||
#< 8 (-3, 0), (0, 4), ('import_tree.references', 1, 21), ('import_tree.references', 5, 4)
|
||||
usage_definition()
|
||||
|
||||
Reference in New Issue
Block a user