Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions fulfillment_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ def test_unknown_customer_no_address(self) -> None:

# Verify no destinations injected
method = updated_checkout.fulfillment.root.methods[0]
self.assertIsNone(method.destinations)
self.assertTrue(
method.destinations is None or len(method.destinations) == 0
)

def test_known_customer_no_address(self) -> None:
"""Test that a known customer with no stored address gets no injection."""
Expand All @@ -230,7 +232,9 @@ def test_known_customer_no_address(self) -> None:
updated_checkout = checkout.Checkout(**response_json)

method = updated_checkout.fulfillment.root.methods[0]
self.assertIsNone(method.destinations)
self.assertTrue(
method.destinations is None or len(method.destinations) == 0
)

def test_known_customer_one_address(self) -> None:
"""Test that a known customer with an address gets it injected."""
Expand Down
Loading