mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-16 01:42:35 +08:00
Care for nested imports in goto_assignments.
This commit is contained in:
1 parent
fc5f73861c
commit
ed56f73836
2 files changed
+10
-1
No files matched your search
@@ -278,3 +278,11 @@ class TestGotoAssignments(TestCase):
|
||||
n = nms[2].goto_assignments()[0]
|
||||
assert n.name == 'path'
|
||||
assert n.type == 'import'
|
||||
|
||||
nms = names('import os.path', references=True)
|
||||
n = nms[0].goto_assignments()[0]
|
||||
assert n.name == 'os'
|
||||
assert n.type == 'module'
|
||||
n = nms[1].goto_assignments()[0]
|
||||
assert n.name == 'path'
|
||||
assert n.type == 'import'
|
||||
Reference in new issue
Block a user