llm-chat/tests/conftest.py

10 lines
176 B
Python
Raw Normal View History

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"