Abri deal abandonment ignores deals that are not Abri condition deals 🟥

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-03 10:04:45 +00:00
parent 262f22764a
commit 33848a76fe

View file

@ -901,6 +901,33 @@ def test_abri_deal_abandonment__third_attempt_with_negative_outcome__returns_tru
assert result is True
def test_abri_deal_abandonment__non_abri_deal__returns_false() -> None:
deal_id = uuid.uuid4()
# Arrange
old_deal = make_old_deal(
id=deal_id,
project_code="Southern Retrofit",
outcome=None,
)
new_deal = make_new_deal(
deal_id,
project_code="Southern Retrofit",
number_of_attempts="3",
outcome="No Answer",
)
# Act
result = HubspotDealDiffer.check_for_abri_deal_abandonment(
new_deal=new_deal,
new_project=None,
old_deal=old_deal,
)
# Assert
assert result is False
# =======================
# DB UPDATE TRIGGER TESTS
# =======================