fix research result handoff and synthesis provenance
This commit is contained in:
@@ -334,7 +334,18 @@ def test_detail_endpoints_serialize_pipeline_uuid_identifiers(client: TestClient
|
||||
}
|
||||
],
|
||||
evidence_scores=[{"claim_id": claim_id, "research_run_id": uuid4()}],
|
||||
report={"summary": "Zusammenfassung", "findings": [], "methodology": "Methodik"},
|
||||
report={
|
||||
"summary": "Zusammenfassung",
|
||||
"confident_findings": [
|
||||
{
|
||||
"claim_text": "Eine überprüfbare Behauptung.",
|
||||
"confidence": 0.9,
|
||||
"source_id": source_id,
|
||||
}
|
||||
],
|
||||
"uncertain_areas": [],
|
||||
"methodology": "Methodik",
|
||||
},
|
||||
)
|
||||
|
||||
sources = client.get(f"/v1/research/{research_id}/sources")
|
||||
@@ -348,6 +359,8 @@ def test_detail_endpoints_serialize_pipeline_uuid_identifiers(client: TestClient
|
||||
assert claims.json()["claims"][0]["source_id"] == str(source_id)
|
||||
assert evidence.json()["evidence"][0]["claim_id"] == str(claim_id)
|
||||
assert report.json()["methodology"] == "Methodik"
|
||||
assert report.json()["findings"][0]["text"] == "Eine überprüfbare Behauptung."
|
||||
assert report.json()["findings"][0]["source_ids"] == [str(source_id)]
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user