test(series): assert group start_page, not per-page stated_page
CI / lint (push) Successful in 2s
CI / frontend-build (push) Successful in 20s
CI / backend-lint-and-test (push) Successful in 33s
CI / integration (push) Successful in 3m11s

add_post now stamps the post's parsed START (constant) on every staged
pending page so the group start survives junk removal; list_pages
surfaces it as start_page. Update the stale per-page [9,10,11] assertion
to check grp["start_page"] == 9.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-11 23:17:14 -04:00
parent 013b9d7f06
commit 3e22e78aa4
+3 -1
View File
@@ -93,7 +93,9 @@ async def test_add_post_stages_pending(db):
assert grp["post"]["id"] == post.id assert grp["post"]["id"] == post.id
assert grp["post"]["title"] == "Story pages 9-11" assert grp["post"]["title"] == "Story pages 9-11"
assert [pg["image_id"] for pg in grp["pages"]] == imgs assert [pg["image_id"] for pg in grp["pages"]] == imgs
assert [pg["stated_page"] for pg in grp["pages"]] == [9, 10, 11] # add_post stamps the post's parsed START (9) on every staged page; the
# group surfaces it as start_page (the default for "Place from page N").
assert grp["start_page"] == 9
@pytest.mark.asyncio @pytest.mark.asyncio