import os import pytest @pytest.fixture(autouse=True) def mock_openai_api_key() -> None: """Set a fake OpenAI API key.""" os.environ["OPENAI_API_KEY"] = "dummy_key"