mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-18 02:23:06 +08:00
fix tests
This commit is contained in:
parent
b7c7712e31
commit
a38aacf6e9
@ -919,8 +919,9 @@ class TestExecution:
|
|||||||
|
|
||||||
jobs_response = client.get_jobs(status="completed")
|
jobs_response = client.get_jobs(status="completed")
|
||||||
assert "jobs" in jobs_response, "Response should have jobs array"
|
assert "jobs" in jobs_response, "Response should have jobs array"
|
||||||
assert "total" in jobs_response, "Response should have total count"
|
assert "pagination" in jobs_response, "Response should have pagination object"
|
||||||
assert "has_more" in jobs_response, "Response should have has_more flag"
|
assert "total" in jobs_response["pagination"], "Pagination should have total count"
|
||||||
|
assert "has_more" in jobs_response["pagination"], "Pagination should have has_more flag"
|
||||||
|
|
||||||
job_ids = [j["id"] for j in jobs_response["jobs"]]
|
job_ids = [j["id"] for j in jobs_response["jobs"]]
|
||||||
assert prompt_id in job_ids, "Completed job should appear in jobs list"
|
assert prompt_id in job_ids, "Completed job should appear in jobs list"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user