From 362c89edbace83b490aa6216c787b0b0a943e0f9 Mon Sep 17 00:00:00 2001 From: Andy Johnson Date: Tue, 7 Jul 2026 16:29:38 -0600 Subject: [PATCH] Added urbanization to the US autocomplete suggestion. --- smartystreets_python_sdk/us_autocomplete/suggestion.py | 1 + test/us_autocomplete/client_test.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/smartystreets_python_sdk/us_autocomplete/suggestion.py b/smartystreets_python_sdk/us_autocomplete/suggestion.py index e9d6308..a4f6f50 100644 --- a/smartystreets_python_sdk/us_autocomplete/suggestion.py +++ b/smartystreets_python_sdk/us_autocomplete/suggestion.py @@ -5,6 +5,7 @@ def __init__(self, obj=None): """ self.smarty_key = obj.get('smarty_key', None) self.entry_id = obj.get('entry_id', None) + self.urbanization = obj.get('urbanization', None) self.street_line = obj.get('street_line', None) self.secondary = obj.get('secondary', None) self.city = obj.get('city', None) diff --git a/test/us_autocomplete/client_test.py b/test/us_autocomplete/client_test.py index f555049..b473d74 100644 --- a/test/us_autocomplete/client_test.py +++ b/test/us_autocomplete/client_test.py @@ -167,6 +167,7 @@ def test_all_suggestion_fields_deserialized(self): expected_result = {"suggestions": [{ "smarty_key": "key", "entry_id": "entry", + "urbanization": "urb", "street_line": "street", "secondary": "secondary", "city": "city", @@ -184,6 +185,7 @@ def test_all_suggestion_fields_deserialized(self): suggestion = lookup.result[0] self.assertEqual('key', suggestion.smarty_key) self.assertEqual('entry', suggestion.entry_id) + self.assertEqual('urb', suggestion.urbanization) self.assertEqual('street', suggestion.street_line) self.assertEqual('secondary', suggestion.secondary) self.assertEqual('city', suggestion.city)