fix: preserve pending occurrence pagination bounds

This commit is contained in:
lda
2026-09-09 21:23:27 +07:00 Verified
parent d8a6795193
commit 384f610301
3 changed files with 104 additions and 9 deletions
@@ -242,8 +242,8 @@ async def test_rpc_schedule_occurrences_pagination_and_pending(tmp_path) -> None
assert first["total"] == 4
assert first["cursor"] is None
assert first["limit"] == 2
# The pending synthesis prepends one row to the stored page.
assert len(first["occurrences"]) == 3
# The pending synthesis consumes one slot from the stored page.
assert len(first["occurrences"]) == 2
pending = first["occurrences"][0]
assert pending["kind"] == "pending"
assert pending["schedule_id"] == "s"