mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-06-10 17:35:57 +00:00
fix: load paginated run history messages (#3305)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
|
||||
def assert_run_message_page(
|
||||
client: TestClient,
|
||||
url: str,
|
||||
*,
|
||||
expected_seq: list[int],
|
||||
has_more: bool = True,
|
||||
) -> None:
|
||||
response = client.get(url)
|
||||
|
||||
assert response.status_code == 200
|
||||
body = response.json()
|
||||
assert body["has_more"] is has_more
|
||||
assert [m["seq"] for m in body["data"]] == expected_seq
|
||||
Reference in New Issue
Block a user