mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Abri job descriptions identify the visit as a Domna condition survey 🟥
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
2c660bdb5d
commit
caffa5c4e1
2 changed files with 26 additions and 0 deletions
11
domain/abri/descriptions.py
Normal file
11
domain/abri/descriptions.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class JobDescriptions:
|
||||
short_description: str
|
||||
long_description: str
|
||||
|
||||
|
||||
def build_job_descriptions(deal_name: str) -> JobDescriptions:
|
||||
raise NotImplementedError
|
||||
15
tests/domain/abri/test_descriptions.py
Normal file
15
tests/domain/abri/test_descriptions.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from domain.abri.descriptions import build_job_descriptions
|
||||
|
||||
|
||||
def test_job_descriptions_identify_the_visit_as_a_domna_condition_survey() -> None:
|
||||
# Arrange
|
||||
deal_name = "49 Admers Crescent, Liphook"
|
||||
|
||||
# Act
|
||||
descriptions = build_job_descriptions(deal_name)
|
||||
|
||||
# Assert
|
||||
assert "Domna condition survey" in descriptions.short_description
|
||||
assert deal_name in descriptions.short_description
|
||||
assert "Domna condition survey" in descriptions.long_description
|
||||
assert deal_name in descriptions.long_description
|
||||
Loading…
Add table
Reference in a new issue