chore: tk 全量提交(新增 formats 模块与界面体检测试包,更新核心/UI/测试/文档)

This commit is contained in:
lianjianwei2024
2026-10-20 21:34:55 +08:00
parent 1fca0efa4f
commit 8235085f26
60 changed files with 8467 additions and 3284 deletions

View File

@@ -126,6 +126,10 @@ def test_audit_open_reuse_and_remark(server):
r2 = post(server, "/api/audit", body)
assert r2["ok"] is True and r2["session_id"] == sid # 同名只留一个会话
assert r2["n_bill"] == 3 # 重写后的条数
recent = get(server, "/api/sessions")
assert recent["ok"] is True and isinstance(recent["items"], list)
item = next(x for x in recent["items"] if x["id"] == sid)
assert item["all"] and item["all"][0]["id"] == sid
rows2 = get(server, "/api/session/rows", session_id=sid, type="bill")
assert rows2["total"] == 3 # ⚠️ 防翻倍回归:旧数据必须被清场
remark = _q(server["sessdb"], "SELECT x_remark FROM s_bills"