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 4bd5d8a commit 7c30a8b
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 @@ -10,7 +10,7 @@ def pytest_configure(config):
os.environ["PYTEST_RUNNING"] = "1"


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

0 comments on commit 7c30a8b

Please sign in to comment.