From be10099d8a25c3a8590545128a4e9f076d6267e3 Mon Sep 17 00:00:00 2001 From: raspawar Date: Thu, 21 Nov 2024 18:45:25 +0530 Subject: [PATCH] remove unnecessary mock --- .../tests/unit_tests/test_metadata.py | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/libs/ai-endpoints/tests/unit_tests/test_metadata.py b/libs/ai-endpoints/tests/unit_tests/test_metadata.py index 061576a..ee2cdcb 100644 --- a/libs/ai-endpoints/tests/unit_tests/test_metadata.py +++ b/libs/ai-endpoints/tests/unit_tests/test_metadata.py @@ -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(