def test_supervision_level_parsing(self) -> None: enum_overrides = UsPaController.generate_enum_overrides() fixture_path = fixtures.as_filepath("supervision_level_raw_text.csv") with open(fixture_path, "r") as f: while True: supervision_level_str = f.readline().strip() if not supervision_level_str: break _ = StateSupervisionLevel.parse(supervision_level_str, enum_overrides)
def test_supervision_period_termination_reason_parsing(self) -> None: enum_overrides = UsPaController.generate_enum_overrides() fixture_path = direct_ingest_fixture_path( region_code=self.region_code, file_name="supervision_period_termination_reason_raw_text.csv", ) with open(fixture_path, "r") as f: while True: supervision_type_str = f.readline().strip() if not supervision_type_str: break _ = StateSupervisionPeriodTerminationReason.parse( supervision_type_str, enum_overrides )