From bcad0e5696af611dfa12dc20f1a13bf4999b6f54 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 12 Jul 2024 14:39:33 -0500 Subject: [PATCH] tests: add context to test_use --- tests/test_use.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_use.py b/tests/test_use.py index ae9401c..ea1cad1 100644 --- a/tests/test_use.py +++ b/tests/test_use.py @@ -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