Skip to content

Commit ee94771

Browse files
fix(tests): correct ZIP4Data field names in E2E test
The test was checking for non-existent fields: - zip4.zip4 → zip4.plus4 - zip4.delivery_point → zip4.city_delivery Also added validation for zip9 and valid_delivery_area fields to match the actual API response structure. Verified with real API - test now passes.
1 parent af65377 commit ee94771

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/e2e/test_api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,11 @@ def test_integration_with_zip4(client):
460460

461461
# Check ZIP+4 data
462462
if fields.zip4:
463-
assert fields.zip4.zip4 is not None
464-
assert fields.zip4.delivery_point is not None
463+
assert fields.zip4.plus4 is not None
464+
assert fields.zip4.zip9 is not None
465465
assert fields.zip4.carrier_route is not None
466+
assert fields.zip4.city_delivery is not None
467+
assert fields.zip4.valid_delivery_area is not None
466468

467469

468470
def test_integration_with_ffiec(client):

0 commit comments

Comments
 (0)