Files

12 lines
355 B
Python

import httpx
async def test_models_list(client: httpx.AsyncClient):
r = await client.get("/v1/models")
assert r.status_code == 200
body = r.json()
assert body["object"] == "list"
ids = [m["id"] for m in body["data"]]
assert ids == ["z-image-turbo", "qwen-image-edit"]
assert all(m["object"] == "model" for m in body["data"])