mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Last fixes, because of the Name.get_definition change. The recent parser.representation changes are now fully working and we're ready to improve Evaluator.goto again.
This commit is contained in:
@@ -130,5 +130,5 @@ def test_goto_definition_not_multiple():
|
||||
|
||||
|
||||
def test_usage_description():
|
||||
for u in api.Script('foo = ''; foo').usages():
|
||||
assert u.description == 'foo'
|
||||
descs = [u.description for u in api.Script("foo = ''; foo").usages()]
|
||||
assert set(descs) == {"foo = ''", 'foo'}
|
||||
|
||||
Reference in New Issue
Block a user