mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 02:30:44 -06:00
tests: add context to test_use
This commit is contained in:
parent
ab1444ace7
commit
bcad0e5696
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ def test_use():
|
||||||
use("pyjokes")
|
use("pyjokes")
|
||||||
import pyjokes # noqa
|
import pyjokes # noqa
|
||||||
|
|
||||||
|
# sample is installed in the test venv which should be removed from sys.path
|
||||||
with pytest.raises(ImportError):
|
with pytest.raises(ImportError):
|
||||||
from sample.simple import add_one # noqa
|
from sample.simple import add_one # noqa
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue