rename example site notes to PasHub_ and add Elmhurst example

This commit is contained in:
Daniel Roth 2026-04-24 13:01:51 +00:00
parent b3096b52ad
commit e15646c341
17 changed files with 15 additions and 15 deletions

View file

@ -119,4 +119,4 @@ def run(pdf_path: str) -> None:
if __name__ == "__main__": if __name__ == "__main__":
run("backend/documents_parser/tests/fixtures/ExampleSiteNotes_6.pdf") run("backend/documents_parser/tests/fixtures/PasHubSiteNotes_6.pdf")

Binary file not shown.

View file

@ -20,9 +20,9 @@ from datatypes.epc.domain.epc_property_data import (
) )
from datatypes.epc.domain.mapper import EpcPropertyDataMapper from datatypes.epc.domain.mapper import EpcPropertyDataMapper
PDF_PATH = os.path.join(os.path.dirname(__file__), "fixtures", "ExampleSiteNotes.pdf") PDF_PATH = os.path.join(os.path.dirname(__file__), "fixtures", "PasHubSiteNotes_1.pdf")
PDF_PATH_2 = os.path.join( PDF_PATH_2 = os.path.join(
os.path.dirname(__file__), "fixtures", "ExampleSiteNotes_2.pdf" os.path.dirname(__file__), "fixtures", "PasHubSiteNotes_2.pdf"
) )
@ -302,7 +302,7 @@ class TestPdfToEpcPropertyDataFixture2:
PDF_PATH_3 = os.path.join( PDF_PATH_3 = os.path.join(
os.path.dirname(__file__), "fixtures", "ExampleSiteNotes_3.pdf" os.path.dirname(__file__), "fixtures", "PasHubSiteNotes_3.pdf"
) )
@ -339,7 +339,7 @@ class TestPdfToEpcPropertyDataFixture3:
PDF_PATH_4 = os.path.join( PDF_PATH_4 = os.path.join(
os.path.dirname(__file__), "fixtures", "ExampleSiteNotes_4.pdf" os.path.dirname(__file__), "fixtures", "PasHubSiteNotes_4.pdf"
) )
@ -369,7 +369,7 @@ class TestPdfToEpcPropertyDataFixture4:
PDF_PATH_5 = os.path.join( PDF_PATH_5 = os.path.join(
os.path.dirname(__file__), "fixtures", "ExampleSiteNotes_5.pdf" os.path.dirname(__file__), "fixtures", "PasHubSiteNotes_5.pdf"
) )
@ -401,7 +401,7 @@ class TestPdfToEpcPropertyDataFixture5:
PDF_PATH_6 = os.path.join( PDF_PATH_6 = os.path.join(
os.path.dirname(__file__), "fixtures", "ExampleSiteNotes_6.pdf" os.path.dirname(__file__), "fixtures", "PasHubSiteNotes_6.pdf"
) )

View file

@ -37,32 +37,32 @@ FIXTURES = os.path.join(os.path.dirname(__file__), "fixtures")
def load_text_fixture() -> list[str]: def load_text_fixture() -> list[str]:
with open(os.path.join(FIXTURES, "site_notes_example_text.json")) as f: with open(os.path.join(FIXTURES, "pashub_site_notes_1_text.json")) as f:
return json.load(f) return json.load(f)
def load_text_fixture_2() -> list[str]: def load_text_fixture_2() -> list[str]:
with open(os.path.join(FIXTURES, "site_notes_example_2_text.json")) as f: with open(os.path.join(FIXTURES, "pashub_site_notes_2_text.json")) as f:
return json.load(f) return json.load(f)
def load_text_fixture_3() -> list[str]: def load_text_fixture_3() -> list[str]:
with open(os.path.join(FIXTURES, "site_notes_example_3_text.json")) as f: with open(os.path.join(FIXTURES, "pashub_site_notes_3_text.json")) as f:
return json.load(f) return json.load(f)
def load_text_fixture_4() -> list[str]: def load_text_fixture_4() -> list[str]:
with open(os.path.join(FIXTURES, "site_notes_example_4_text.json")) as f: with open(os.path.join(FIXTURES, "pashub_site_notes_4_text.json")) as f:
return json.load(f) return json.load(f)
def load_text_fixture_5() -> list[str]: def load_text_fixture_5() -> list[str]:
with open(os.path.join(FIXTURES, "site_notes_example_5_text.json")) as f: with open(os.path.join(FIXTURES, "pashub_site_notes_5_text.json")) as f:
return json.load(f) return json.load(f)
def load_text_fixture_6() -> list[str]: def load_text_fixture_6() -> list[str]:
with open(os.path.join(FIXTURES, "site_notes_example_6_text.json")) as f: with open(os.path.join(FIXTURES, "pashub_site_notes_6_text.json")) as f:
return json.load(f) return json.load(f)

View file

@ -5,8 +5,8 @@ import pytest
from backend.documents_parser.pdf import pdf_to_text_list from backend.documents_parser.pdf import pdf_to_text_list
PDF_PATH = os.path.join(os.path.dirname(__file__), "fixtures", "ExampleSiteNotes.pdf") PDF_PATH = os.path.join(os.path.dirname(__file__), "fixtures", "PasHubSiteNotes_1.pdf")
FIXTURE_PATH = os.path.join(os.path.dirname(__file__), "fixtures", "site_notes_example_text.json") FIXTURE_PATH = os.path.join(os.path.dirname(__file__), "fixtures", "pashub_site_notes_1_text.json")
@pytest.fixture @pytest.fixture