We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0c0f75 commit 2552675Copy full SHA for 2552675
server_tests/conftest.py
@@ -3,6 +3,7 @@
3
from typing import cast
4
from unittest.mock import patch
5
6
+import openai
7
import psycopg2
8
import pytest
9
import redis
@@ -66,6 +67,7 @@ def redis_host():
66
67
@pytest.fixture(scope="session")
68
def mock_openai_chat_completion():
69
"""Mock the OpenAI chat completion API."""
70
+ openai.api_key = "dummy_key"
71
with patch("openai.chat.completions.create") as mock:
72
mock.return_value = ChatCompletion(
73
id="foo",
0 commit comments