mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Add the long forgotten tests for test_usages.py
This commit is contained in:
6
test/test_api/test_usages.py
Normal file
6
test/test_api/test_usages.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import jedi
|
||||
|
||||
|
||||
def test_import_usage():
|
||||
s = jedi.Script("from .. import foo", line=1, column=18, path="foo.py")
|
||||
assert [usage.line for usage in s.usages()] == [1]
|
||||
Reference in New Issue
Block a user