Skip to content

Commit

Permalink
attempt to fix all tests by mocking openai in conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
IMladjenovic committed Dec 12, 2024
1 parent 7c30a8b commit 8f1fc6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ def pytest_configure(config):

@pytest.fixture(scope="module", autouse=True)
def mock_async_openai():
with patch("src.llm.OpenAI.client") as mock_async_openai:
with patch("openai.AsyncOpenAI") as mock_async_openai:
yield mock_async_openai

0 comments on commit 8f1fc6a

Please sign in to comment.