Skip to content

Commit

Permalink
Make a test more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Oct 23, 2020
1 parent 5f2f4af commit 43ff283
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_api/test_usages.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import pytest

from ..helpers import test_dir


def test_import_references(Script):
s = Script("from .. import foo", path="foo.py")
s = Script("from .. import foo", path=test_dir.joinpath("foo.py"))
assert [usage.line for usage in s.get_references()] == [1]


Expand Down

0 comments on commit 43ff283

Please sign in to comment.