mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-25 11:02:55 +00:00
分析范围的「检验」照方案写明校正过没有:W1-d 在 ScopeBlock 里记了 corrected,导出页(report_export/build.render_scope)和可验证报告的核对页(verifier.js renderScope)只写了次数;只做了一次的接「(一次里比了几对的已按次数校正)」,不止一次的接「,几次检验之间没有按次数校正」,两处同一种说法;测试补上 corrected
This commit is contained in:
@@ -407,7 +407,7 @@ SCOPE = {"analysis_scope": {
|
||||
"decomposed": [{"alias": "A1", "op": "decompose", "mode": "additive", "dims": ["地区"], "verdict": "driver",
|
||||
"phrase": "主要来自华东"}],
|
||||
"excluded": [], "refused": [{"alias": "A1", "op": "baseline", "reason": "历史只有 5 期,至少要 8 期"}],
|
||||
"not_decomposed": ["渠道"], "tests": 2}}
|
||||
"not_decomposed": ["渠道"], "tests": 2, "corrected": False}}
|
||||
|
||||
|
||||
def data_block(html: str) -> dict[str, Any]:
|
||||
@@ -427,7 +427,8 @@ async def test_the_html_export_carries_the_analysis_chain_and_the_scope(client):
|
||||
assert data["notes"][phrase].startswith("判定语由系统按平台的方法算出判定")
|
||||
# 分析范围:正文后面渲染,编号点得开、和点开判定语是同一条链
|
||||
assert '<section class="scope"' in html and "<dt>现象</dt>" in html and "<dt>拆过</dt>" in html
|
||||
assert "<dt>算不了</dt>" in html and "<dd>渠道</dd>" in html and "这次做了 2 次差异检验" in html
|
||||
assert "<dt>算不了</dt>" in html and "<dd>渠道</dd>" in html
|
||||
assert "这次做了 2 次差异检验,几次检验之间没有按次数校正" in html
|
||||
assert 'data-seg="scope:A1"' in html and "(按地区)" in html
|
||||
assert data["refs"]["scope:A1"] == data["refs"][phrase]
|
||||
assert f'data-seg="{phrase}"' in html and 'data-kind="analysis"' in html
|
||||
|
||||
@@ -161,7 +161,7 @@ async def test_the_bundle_page_shows_the_analysis_detail_and_the_scope():
|
||||
assert out["verified"] == ""
|
||||
[scope] = out["scope"]
|
||||
assert scope.startswith("分析范围") and "现象A1:销售额下降" in scope and "拆过A1(按地区):主要来自华东" in scope
|
||||
assert "没拆渠道" in scope and "这次做了 2 次差异检验" in scope
|
||||
assert "没拆渠道" in scope and "这次做了 2 次差异检验,几次检验之间没有按次数校正" in scope
|
||||
phrase = next(text for text in out["opened"].values() if "出处分析结论 A1 的判定语" in text)
|
||||
assert "核对结果✓ 通过" in phrase and "分析结论里的值「销售额下降 194(-8.7%)" in phrase
|
||||
assert "判定语销售额下降 194(-8.7%)" in phrase and "方法与版本decompose.additive@1" in phrase
|
||||
|
||||
Reference in New Issue
Block a user