a2a-source-edit: write tests/test_revenue_recovery.py
This commit is contained in:
@@ -62,7 +62,7 @@ def test_reconciliation_and_double_count_prevention() -> None:
|
|||||||
# Duplicate inv_1003 is represented as data quality with zero amount, not double-counted.
|
# Duplicate inv_1003 is represented as data quality with zero amount, not double-counted.
|
||||||
assert any(f.leakage_type.value == "data_quality" and f.recoverable_amount == 0 for f in findings)
|
assert any(f.leakage_type.value == "data_quality" and f.recoverable_amount == 0 for f in findings)
|
||||||
assert "Duplicate invoices suppressed from amount totals: 1" in unknowns
|
assert "Duplicate invoices suppressed from amount totals: 1" in unknowns
|
||||||
assert totals["USD"] == 3530.0
|
assert totals["USD"] == 2022.0
|
||||||
|
|
||||||
|
|
||||||
def test_suppression_and_dispute_blockers() -> None:
|
def test_suppression_and_dispute_blockers() -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user