mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-07-09 16:08:31 +00:00
Some checks failed
Backend Blocking IO / backend-blocking-io (push) Waiting to run
Unit Tests / backend-unit-tests (push) Waiting to run
Frontend Unit Tests / frontend-unit-tests (push) Waiting to run
Lint Check / lint (push) Waiting to run
Lint Check / lint-frontend (push) Waiting to run
E2E Tests / e2e-tests (push) Has been cancelled
16 lines
383 B
Python
16 lines
383 B
Python
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
|