Remove a statement that didn't make sense

This commit is contained in:
Dave Halter
2020-01-07 22:20:36 +01:00
parent a0536bd854
commit 10c5990614
2 changed files with 9 additions and 1 deletions

View File

@@ -54,3 +54,11 @@ def test_goto_on_file(Script):
script = Script(path=d1.module_path, _project=project)
d2, = script.goto(line=d1.line, column=d1.column + 4)
assert d2.name == 'Bar'
def test_goto_import(Script):
code = 'from abc import ABC; ABC'
d, = Script(code).goto(only_stubs=True)
assert d.is_stub()
d, = Script(code).goto()
assert not d.is_stub()