mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-16 02:27:06 +08:00
Add test for cross-module usages
This commit is contained in:
4
test/test_api/import_tree_for_usages/__init__.py
Normal file
4
test/test_api/import_tree_for_usages/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
"""
|
||||
An import tree, for testing usages.
|
||||
"""
|
||||
|
||||
4
test/test_api/import_tree_for_usages/a.py
Normal file
4
test/test_api/import_tree_for_usages/a.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from . import b
|
||||
|
||||
def foo():
|
||||
b.bar()
|
||||
2
test/test_api/import_tree_for_usages/b.py
Normal file
2
test/test_api/import_tree_for_usages/b.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def bar():
|
||||
pass
|
||||
Reference in New Issue
Block a user