@davoodmehraban89 / Aram-2 Mirror · read-only / commits / 392ac9e
Fork 0

Mirrored from https://github.com/davoodmehraban89/Aram.git

Synced Dec 3, 20:45 UTC

test(statements): prove classification policy hash changes without changing cash totals

davoodmehraban89 committed Oct 31, 2026 at 08:28 UTC 392ac9e8d2a9806843bb572b8e4032d7e75e9843
1 file changed +10
backend/tests/test_cash_flow_direct_candidate.py
+10
@@ -320,6 +320,16 @@ def test_policy_and_transaction_hashes_are_stable_and_source_unchanged():
320 assert not first.releasable
321
322
323 +def test_classification_policy_change_changes_policy_hash_without_rounding_cash():
324 + first = build()
325 + changed = counterpart_policies()
326 + changed[0] = replace(changed[0], activity="INVESTING")
327 + second = build(policies=changed)
328 + assert first.classification_policies_sha256 != second.classification_policies_sha256
329 + assert first.net_change_in_cash == second.net_change_in_cash
330 + assert second.eligible_for_analyst_review
331 +
332 +
333 def test_input_size_and_transaction_count_are_bounded():
334 with pytest.raises(CoverageError):
335 build(data=b"x" * (20 * 1024 * 1024 + 1))