# A very simple script to read a presite note and load to a postgres database import os from etl.surveyedData.surveryedData import surveyedDataProcessor from etl.db.db import get_db_session, init_db from etl.transform.preSiteNoteTypes import AssessorInfo import pytest from etl.jjc_old_lewis_manual_way_ import work_out_total_floor_area @pytest.fixture(scope="module") def pre_site_note_path(): """Fixture for the path to the example pre-site note.""" return os.path.join(os.getcwd(), "example_data", "csr_special_case.pdf") @pytest.fixture(scope="module") def local_survey(pre_site_note_path): """Fixture to create a surveyedDataProcessor instance.""" return surveyedDataProcessor("122 Fake Street", [pre_site_note_path]) def test_material(local_survey): assert local_survey.csr.insulation_info.type == "Foam"