test: check that processing time is not skipped (#416)

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi
2025-10-27 08:29:05 +01:00
committed by GitHub
parent 7bf2e7b366
commit a2e68d39ae

View File

@@ -69,3 +69,9 @@ async def test_convert_url(async_client: httpx.AsyncClient):
with connect(uri) as websocket:
for message in websocket:
print(message)
result_resp = await async_client.get(f"{base_url}/result/{task['task_id']}")
assert result_resp.status_code == 200, "Response should be 200 OK"
result = result_resp.json()
print(f"{result['processing_time']=}")
assert result["processing_time"] > 1.0