import pytest import os @pytest.fixture(autouse=True) def mock_openai_api_key(): os.environ["OPENAI_API_KEY"] = "dummy_key"