Use the Script fixture more generally

This commit is contained in:
Dave Halter committed 2017-12-29 18:40:17 +01:00
1 parent 38cacba385
commit da211aa63d
10 files changed
+388 -341

No files matched your search

+2 -5
View File
@@ -1,6 +1,3 @@
import jedi
def test_import_usage():
s = jedi.Script("from .. import foo", line=1, column=18, path="foo.py")
def test_import_usage(Script):
s = Script("from .. import foo", line=1, column=18, path="foo.py")
assert [usage.line for usage in s.usages()] == [1]