From 96de885917a4df05e988c39cf62ff36a6c5675c2 Mon Sep 17 00:00:00 2001 From: Lukas Melninkas Date: Fri, 26 Apr 2024 13:21:45 +0300 Subject: [PATCH] Support promenade as street type --- pyap/source_US/data.py | 1 + tests/test_parser_us.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/pyap/source_US/data.py b/pyap/source_US/data.py index ad2040f..97fae83 100644 --- a/pyap/source_US/data.py +++ b/pyap/source_US/data.py @@ -592,6 +592,7 @@ def str_list_to_upper_lower_regex(str_list: List[str]) -> str: "Pr", "Prairie", "Prk", + "Promenade", "Prr", "Prt", "Prts", diff --git a/tests/test_parser_us.py b/tests/test_parser_us.py index 58bb663..374aeb9 100644 --- a/tests/test_parser_us.py +++ b/tests/test_parser_us.py @@ -475,7 +475,12 @@ def test_full_street_positive(input, expected): "input,expected", [ # positive assertions + ("1111 3rd Street Promenade, Santa Monica, CA 90000", True), ("P.O. BOX 10323 PH (205) 595-3511\nBIRMINGHAM, AL 35202", True), + ("2222 CARPENTER RD SUITE 1W\nANN ARBOR, MI, US, 48000", True), + ("P.O. BOX 11111 PH (222) 555-3333\nBIRMINGHAM, AL 35000", True), + ("25 HARBOR PARK DRIVE\nPORT WASHINGTON\nNY 11050", True), + ("222 W. Las Colinas Blvd\nSuite 900N\nIrving, Texas, USA 75039-5421", True), ("1100 VIRGINIA DR\nFORT WASHINGTON, PA, 19034", True), ("3602 HIGHPOINT\nSAN ANTONIO TX78217", True), ("8025 BLACK HORSE\nSTE 300\nPLEASANTVILLE NJ 08232", True),