mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
pdf json to RdSapSiteNotes full extract 🟥
This commit is contained in:
parent
569f17d811
commit
1ef6af6bab
1 changed files with 12 additions and 0 deletions
|
|
@ -527,6 +527,18 @@ class TestCustomerResponse:
|
|||
)
|
||||
|
||||
|
||||
class TestExtract:
|
||||
@pytest.fixture
|
||||
def result(self) -> PasHubRdSapSiteNotes:
|
||||
return PasHubRdSapSiteNotesExtractor(load_text_fixture()).extract()
|
||||
|
||||
def test_returns_pashub_site_notes(self, result: PasHubRdSapSiteNotes) -> None:
|
||||
assert isinstance(result, PasHubRdSapSiteNotes)
|
||||
|
||||
def test_general_is_correct(self, result: PasHubRdSapSiteNotes) -> None:
|
||||
assert result.general.inspection_date == "2025-09-25"
|
||||
|
||||
|
||||
class TestSurveyAddendum:
|
||||
def test_hard_to_treat_flags(self) -> None:
|
||||
result = PasHubRdSapSiteNotesExtractor(load_text_fixture()).extract_addendum()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue