mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-21 10:20:43 -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")
|
||||
import pyjokes # noqa
|
||||
|
||||
# sample is installed in the test venv which should be removed from sys.path
|
||||
with pytest.raises(ImportError):
|
||||
from sample.simple import add_one # noqa
|
||||
|
||||
|
|
Loading…
Reference in a new issue