We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc078e1 commit 8c68d69Copy full SHA for 8c68d69
1 file changed
tests/test_json_repair.py
@@ -1,11 +1,17 @@
1
-from unittest.mock import AsyncMock, patch
+from unittest.mock import AsyncMock, MagicMock, patch
2
3
import pytest
4
from pydantic import BaseModel
5
6
from backend.utils.llm_client import structured_completion
7
8
9
+@pytest.fixture(autouse=True)
10
+def _mock_llm_client():
11
+ with patch("backend.utils.llm_client.get_client", return_value=MagicMock()):
12
+ yield
13
+
14
15
class SimpleModel(BaseModel):
16
name: str
17
value: int
0 commit comments