fix(workbook): 参数页维度对照与使用说明输入字典(F06 收尾)
Verify / verify (push) Failing after 2m39s

- 参数与口径页新增维度键与显示名对照行(只读)
- 使用说明页新增输入字典:每个可编辑输入逐项列出字段、单位、来源、
  修改位置与缺失含义;补充固定结构边界说明
- 毛利率参数行改为文本快照并指向计算明细 MarginRate 列
- 对账容差说明改为按指标类型独立容差、调整需财务批准
- 撤权校验区分账号停用与角色变更的报错信息
- 引入 test_formula_workbook_docs 与扩展的 test_worker_paths(F08 撤权、
  崩溃恢复语义对齐 PostgreSQL 咨询锁立即重认领)
This commit is contained in:
Jayway Liu
2026-11-01 03:52:08 +08:00
parent 0f78a616e9
commit 2a83de21d9
4 changed files with 328 additions and 10 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ def test_formula_export_rechecks_role_when_worker_runs_and_file_is_downloaded(wo
job = FormulaExport.objects.create(dataset=ds, user=ds.created_by, context={}, status="processing")
member.role = "viewer"
member.save(update_fields=["role"])
with pytest.raises(PermissionError, match="撤权"):
with pytest.raises(PermissionError, match="角色已变更"):
process_formula_export(job.pk)
job.refresh_from_db()
assert job.status == "failed"