diff --git a/backend/conftest.py b/backend/conftest.py index 2696e7db..9eab1170 100644 --- a/backend/conftest.py +++ b/backend/conftest.py @@ -10,7 +10,7 @@ def pytest_configure(config): os.environ["PYTEST_RUNNING"] = "1" -@pytest.fixture(autouse=True) +@pytest.fixture(scope="module", autouse=True) def mock_async_openai(): with patch("src.llm.OpenAI.client") as mock_async_openai: yield mock_async_openai