refactor(sp31): rename Match strategy 'auto' to 'pcn-exact' for audit clarity

This commit is contained in:
Nora
2026-07-02 14:59:49 -06:00
parent 6624a0bafd
commit 75a2800a9d
4 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -320,7 +320,7 @@ def test_create_match_and_activity_event():
))
m = Match(
claim_id="CLM-1", remittance_id="CLP-1",
strategy="auto", is_reversal=False,
strategy="pcn-exact", is_reversal=False,
matched_at=datetime(2026, 6, 19, 13, 0, tzinfo=timezone.utc),
)
s.add(m)
@@ -335,7 +335,7 @@ def test_create_match_and_activity_event():
with db.SessionLocal()() as s:
loaded = s.get(Match, 1) # autoincrement id
assert loaded is not None
assert loaded.strategy == "auto"
assert loaded.strategy == "pcn-exact"
assert loaded.is_reversal is False
events = s.query(ActivityEvent).all()
@@ -361,7 +361,7 @@ def test_match_multiple_rows_per_claim():
status_code="1", received_at=datetime.now(timezone.utc)))
s.add(Remittance(id="CLP-2", batch_id="b1", payer_claim_control_number="y",
status_code="1", received_at=datetime.now(timezone.utc)))
s.add(Match(claim_id="CLM-1", remittance_id="CLP-1", strategy="auto",
s.add(Match(claim_id="CLM-1", remittance_id="CLP-1", strategy="pcn-exact",
matched_at=datetime.now(timezone.utc)))
s.add(Match(claim_id="CLM-1", remittance_id="CLP-2", strategy="manual",
matched_at=datetime.now(timezone.utc),