MCPcopy
hub / github.com/kserve/kserve / test_list_models_v1

Method test_list_models_v1

python/kserve/test/test_server.py:442–445  ·  view source on GitHub ↗
(self, http_server_client)

Source from the content-addressed store, hash-verified

440 assert resp.json() == {"error": "Model with name InvalidModel does not exist."}
441
442 def test_list_models_v1(self, http_server_client):
443 resp = http_server_client.get("/v1/models")
444 assert resp.status_code == 200
445 assert resp.json() == {"models": ["TestModel", "DateTimeModel"]}
446
447 def test_predict_v1(self, http_server_client):
448 resp = http_server_client.post(

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected