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 568b03d commit d9f74c2
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(autouse=True)
def mock_async_openai():
with patch("src.llm.openai.AsyncOpenAI") as mock_async_openai:
with patch("src.llm.OpenAI.client") as mock_async_openai:
yield mock_async_openai

0 comments on commit d9f74c2

Please sign in to comment.