tests: add context to test_use

This commit is contained in:
Daylin Morgan 2024-07-12 14:39:33 -05:00
parent ab1444ace7
commit bcad0e5696
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -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