fix(backend): make 835 summary counts consistent with total_claims
This commit is contained in:
@@ -41,7 +41,8 @@ def test_parse_835_endpoint_returns_json(client: TestClient):
|
||||
assert "claims" in body and len(body["claims"]) == 2
|
||||
assert "summary" in body
|
||||
assert body["summary"]["total_claims"] == 2
|
||||
assert body["summary"]["passed"] == 1
|
||||
assert body["summary"]["passed"] == 2
|
||||
assert body["summary"]["failed"] == 0
|
||||
|
||||
|
||||
# --------------------------------------------------------------------------- #
|
||||
@@ -79,7 +80,7 @@ def test_parse_835_endpoint_streams_ndjson(client: TestClient):
|
||||
|
||||
# Summary numbers match the JSON path.
|
||||
assert parsed[7]["data"]["total_claims"] == 2
|
||||
assert parsed[7]["data"]["passed"] == 1
|
||||
assert parsed[7]["data"]["passed"] == 2
|
||||
|
||||
|
||||
def test_parse_835_endpoint_streams_ndjson_without_raw_segments(client: TestClient):
|
||||
@@ -123,7 +124,7 @@ def test_parse_835_endpoint_handles_payer_query_param(client: TestClient):
|
||||
assert resp.status_code == 200, (payer, resp.text)
|
||||
body = resp.json()
|
||||
assert body["summary"]["total_claims"] == 2
|
||||
assert body["summary"]["passed"] == 1
|
||||
assert body["summary"]["passed"] == 2
|
||||
|
||||
|
||||
def test_parse_835_endpoint_rejects_unknown_payer(client: TestClient):
|
||||
|
||||
Reference in New Issue
Block a user