mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
NamePart migration of Definition is complete. Now Completion.
This commit is contained in:
@@ -170,8 +170,8 @@ class TestParent(TestCase):
|
||||
parent = self._parent('''\
|
||||
def spam():
|
||||
pass''', 1, len('def spam'))
|
||||
assert parent.name == 'spam'
|
||||
assert parent.parent().type == 'module'
|
||||
assert parent.name == ''
|
||||
assert parent.type == 'module'
|
||||
|
||||
def test_parent_on_completion(self):
|
||||
parent = Script(dedent('''\
|
||||
|
||||
Reference in New Issue
Block a user