Skip to content

Commit

Permalink
Merge branch 'smarty-key'
Browse files Browse the repository at this point in the history
  • Loading branch information
savannah-ryan committed Jul 6, 2023
2 parents ee7b202 + 91602e6 commit 2985531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions smartystreets_python_sdk/us_street/candidate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def __init__(self, obj):
self.delivery_line_2 = obj.get('delivery_line_2', None)
self.last_line = obj.get('last_line', None)
self.delivery_point_barcode = obj.get('delivery_point_barcode', None)
self.smarty_key = obj.get('smarty_key', None)
self.components = Components(obj.get('components', {}))
self.metadata = Metadata(obj.get('metadata', {}))
self.analysis = Analysis(obj.get('analysis', {}))
2 changes: 2 additions & 0 deletions test/us_street/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def test_full_json_response_deserialization(self):
"delivery_line_2": "blah blah",
"last_line": "Provo UT 84604-4405",
"delivery_point_barcode": "846044405140",
"smarty_key": "1750774478",
"components": {
"primary_number": "3214",
"street_predirection": "N",
Expand Down Expand Up @@ -177,6 +178,7 @@ def test_full_json_response_deserialization(self):
self.assertEqual(actual_candidate.delivery_line_2, "blah blah")
self.assertEqual(actual_candidate.last_line, "Provo UT 84604-4405")
self.assertEqual(actual_candidate.delivery_point_barcode, "846044405140")
self.assertEqual(actual_candidate.smarty_key, "1750774478")
self.assertEqual(actual_candidate.components.primary_number, "3214")
self.assertEqual(actual_candidate.components.street_predirection, "N")
self.assertEqual(actual_candidate.components.street_name, "University")
Expand Down

0 comments on commit 2985531

Please sign in to comment.