mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
An unchanged surveyor on a booked deal fires no amendment 🟩
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
137ebd9456
commit
b4ce0ae83f
1 changed files with 27 additions and 0 deletions
|
|
@ -174,6 +174,33 @@ def test_a_blank_surveyor_on_a_booked_deal_with_no_stored_surveyor_is_not_a_chan
|
|||
assert message is None
|
||||
|
||||
|
||||
def test_an_unchanged_surveyor_on_a_booked_deal_fires_nothing() -> None:
|
||||
# Arrange: booking exists; surveyor and appointment are unchanged.
|
||||
old_deal = make_old_deal(
|
||||
project_code=ABRI_PROJECT_CODE,
|
||||
confirmed_survey_date=datetime(2026, 6, 24, tzinfo=timezone.utc),
|
||||
confirmed_survey_time="14:30",
|
||||
third_party_surveyor_identifier="SURVEYOR",
|
||||
)
|
||||
new_deal = make_new_deal(
|
||||
confirmed_survey_date="2026-06-24",
|
||||
confirmed_survey_time="14:30",
|
||||
third_party_surveyor_identifier="SURVEYOR",
|
||||
)
|
||||
|
||||
# Act
|
||||
message = HubspotDealDiffer.check_abri_triggers_and_construct_message(
|
||||
hubspot_deal_id=DEAL_ID,
|
||||
new_deal=new_deal,
|
||||
new_project=None,
|
||||
new_listing=LISTING,
|
||||
old_deal=old_deal,
|
||||
)
|
||||
|
||||
# Assert
|
||||
assert message is None
|
||||
|
||||
|
||||
def test_a_first_expected_commencement_date_builds_a_tenant_sync_message() -> None:
|
||||
# Arrange
|
||||
old_deal = make_old_deal(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue