mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-15 00:11:59 +00:00
对账视图测试跟上预选字段:只引用一列、没有逐格比的查询,options.suggested 为空
This commit is contained in:
@@ -263,7 +263,9 @@ async def test_the_reconcile_view_gives_the_panel_what_it_draws(client, monkeypa
|
||||
body = {"query": action["query"], "workflow_id": wf, "version": 1, "inputs": CHECKED, "confirm": True}
|
||||
res = await client.post(f"/api/ledger/answers/{row.id}/reconcile", json=body)
|
||||
assert res.status_code == 409 and res.json()["code"] == ledger_reconcile.NEEDS_PAIRS
|
||||
assert res.json()["options"] == {"columns": ["gmv"], "metrics": [{"id": "gmv", "name": "销售额", "unit": "元"}]}
|
||||
# suggested:逐格证明了的预选(这条查询只引用了一列,没有逐格比,空)
|
||||
assert res.json()["options"] == {"columns": ["gmv"], "metrics": [{"id": "gmv", "name": "销售额", "unit": "元"}],
|
||||
"suggested": []}
|
||||
done = await reconcile(client, row.id, {**body, "pairs": [{"ours": "gmv", "metric": "gmv"}]})
|
||||
[listed] = (await ledger_of(client, row.id))["reconciled"]
|
||||
assert listed["run_id"] == done.id and listed["card"] == "reconcile"
|
||||
|
||||
Reference in New Issue
Block a user