v1.3 看得见:三色错题本(红/黄/绿+待做视图) + 收尾页(表扬行为) + 小狮落库(pet_stage/pet_fed_at,247 测试)

This commit is contained in:
2026-11-23 21:31:11 +08:00
parent 2f81e07b7d
commit 53699b4e42
12 changed files with 435 additions and 24 deletions
+4 -1
View File
@@ -153,8 +153,11 @@ def main():
and d["data"]["status"] == "graduated", d)
st, d = call(base, "GET", f"/api/report/weekly?child_id={cid}", None, token)
# 注意:dev_advance 会把 attempts 的日期一起往前挪(不然「当天错了又对」永远成立),
# 所以跑到这里,前面的做题记录已经不在本周了。这里只校验结构 + 至少一条记录。
check("周报有数字和一句话", st == 200 and "numbers" in d["data"]
and d["data"]["numbers"]["attempts_this_week"] >= 2, d)
and d["data"]["numbers"]["attempts_this_week"] >= 1
and d["data"]["one_line"], d)
st, d = call(base, "GET", f"/api/print/weekly?child_id={cid}&token={token}")
check("周日那张纸是 HTML 且含签字栏/答案折叠", st == 200