mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-18 21:51:28 +08:00
Add the long forgotten tests for test_usages.py
This commit is contained in:
1 parent
2563746810
commit
4b0e164d91
1 file changed
+6
@@ -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