MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / test_get_provider

Method test_get_provider

inference/test/test_others.py:45–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 @pytest.mark.asyncio
44 @pytest.mark.test_id("inference_022")
45 async def test_get_provider(self):
46 list_res = await list_providers()
47 providers = list_res.json()["data"]
48 for provider in providers:
49 request_data = {"provider_id": provider["provider_id"]}
50 result = await get_provider(request_data)
51 assert result.status_code == 200, f"test_get_provider failed: result={result}"
52 assert result.json()["status"] == "success"
53 assert result.json()["data"][0]["provider_id"] == request_data["provider_id"]
54
55 @pytest.mark.asyncio
56 @pytest.mark.test_id("inference_024")

Callers

nothing calls this directly

Calls 3

list_providersFunction · 0.50
get_providerFunction · 0.50
jsonMethod · 0.45

Tested by

no test coverage detected