mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
change fake contact details
This commit is contained in:
parent
de2a6d1d79
commit
859a7ec49a
1 changed files with 8 additions and 6 deletions
|
|
@ -10,8 +10,8 @@ Usage:
|
|||
2. Create a throwaway test deal in the HubSpot UI and paste its id into
|
||||
DEAL_ID below.
|
||||
3. Run: python scripts/smoke_test_tenant_contacts.py
|
||||
4. Check the deal in the UI: two contacts (Jane Doe, Joe Bloggs), with
|
||||
Jane carrying mobilephone, phone, secondary_phone_number,
|
||||
4. Check the deal in the UI: two contacts (Daniel Roth, Joe Bloggs), with
|
||||
Daniel carrying mobilephone, phone, secondary_phone_number,
|
||||
is_vulnerable=true and a two-line vulnerability_description, and Joe
|
||||
carrying only a name and is_vulnerable=false.
|
||||
5. Clean up: paste the printed contact ids into CONTACT_IDS_TO_ARCHIVE,
|
||||
|
|
@ -35,7 +35,7 @@ from orchestration.abri_tenant_data_sync_orchestrator import (
|
|||
AbriTenantDataSyncOrchestrator,
|
||||
)
|
||||
|
||||
DEAL_ID = "EDIT-ME"
|
||||
DEAL_ID = "485125892321"
|
||||
|
||||
# Cleanup mode: set ARCHIVE = True and list the contact ids printed by a
|
||||
# previous run to archive them instead of creating new ones.
|
||||
|
|
@ -44,11 +44,11 @@ CONTACT_IDS_TO_ARCHIVE: List[str] = []
|
|||
|
||||
PLACE_REF = PlaceRef("SMOKE1")
|
||||
|
||||
# Jane Doe exercises best-of-kind phone selection, the runner-up pick into
|
||||
# Daniel Roth exercises best-of-kind phone selection, the runner-up pick into
|
||||
# secondary_phone_number, and the vulnerability fields; Joe Bloggs exercises
|
||||
# the always-written is_vulnerable=false with every other property omitted.
|
||||
SMOKE_TENANCY_XML = b"""<Root>
|
||||
<Tenancy end_date="" start_date="15/12/2008">SMOKETEST0001<Tenant forenames="Jane" main-contact="yes" person_title="Mrs" surname="Doe">9000001<Mobile priority="10">07700900123</Mobile>
|
||||
<Tenancy end_date="" start_date="15/12/2008">SMOKETEST0001<Tenant forenames="Daniel" main-contact="yes" person_title="Mr" surname="Roth">9000001<Mobile priority="10">07700900123</Mobile>
|
||||
<Mobile priority="20">07700900456</Mobile>
|
||||
<Telephone priority="5">01632960123</Telephone>
|
||||
<Telephone priority="30">01632960789</Telephone>
|
||||
|
|
@ -95,7 +95,9 @@ def _stubbed_abri_client() -> AbriClient:
|
|||
default_resource="",
|
||||
)
|
||||
)
|
||||
client._session = cast(Any, _StubAbriSession()) # pyright: ignore[reportPrivateUsage]
|
||||
client._session = cast(
|
||||
Any, _StubAbriSession()
|
||||
) # pyright: ignore[reportPrivateUsage]
|
||||
return client
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue