in 06-http-replay/conftest.py [0:0]
def default_openai_env(monkeypatch):
"""Prevent offline tests from failing due to requiring the ENV OPENAI_API_KEY."""
if "OPENAI_API_KEY" not in os.environ:
monkeypatch.setenv("OPENAI_API_KEY", "test_openai_api_key")