Skip to content

Commit

Permalink
remove unnecessary mock
Browse files Browse the repository at this point in the history
  • Loading branch information
raspawar committed Nov 21, 2024
1 parent 7ca93e9 commit be10099
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions libs/ai-endpoints/tests/unit_tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,27 +67,6 @@ def mock_local_models_httpx(httpx_mock: HTTPXMock) -> None:
)


@pytest.fixture
async def mock_httpx_post():
async with httpx.AsyncClient() as client:
client.post = lambda url, **kwargs: httpx.Response(
200,
json={
"tool_calls": [
{
"id": "tool-ID",
"type": "function",
"function": {
"name": "magic",
"arguments": [],
},
}
],
},
)
yield client


@pytest.fixture
def mock_local_models_stream_metadata(requests_mock: requests_mock.Mocker) -> None:
response_contents = "\n\n".join(
Expand Down

0 comments on commit be10099

Please sign in to comment.