Skip to content

Commit 38be4e5

Browse files
committed
fix country checking format
1 parent 7859479 commit 38be4e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

purplship/mappers/sendle/sendle_mapper/partials/rate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def create_parcel_quote_request(self, payload: RateRequest) -> ParcelQuoteReques
4949
SendleMapperPartial._create_domestic_quote
5050
if (
5151
payload.recipient.country_code is None or
52-
payload.recipient.country_code == 'AUS'
52+
payload.recipient.country_code == 'AU'
5353
) else
5454
SendleMapperPartial._create_international_quote
5555
)(payload)

tests/sendle/quote.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_parse_quote_response_errors(self):
7171
"base_charge": 14.95,
7272
"carrier": "Sendle",
7373
"currency": "AUD",
74-
"delivery_date": "['2018-02-19']",
74+
"delivery_date": "2018-02-19",
7575
"duties_and_taxes": 1.36,
7676
"service_name": "Easy",
7777
"service_type": "Easy",
@@ -81,7 +81,7 @@ def test_parse_quote_response_errors(self):
8181
"base_charge": 13.95,
8282
"carrier": "Sendle",
8383
"currency": "AUD",
84-
"delivery_date": "['2018-02-19']",
84+
"delivery_date": "2018-02-19",
8585
"duties_and_taxes": 1.27,
8686
"service_name": "Premium",
8787
"service_type": "Premium",
@@ -91,7 +91,7 @@ def test_parse_quote_response_errors(self):
9191
"base_charge": 13.95,
9292
"carrier": "Sendle",
9393
"currency": "AUD",
94-
"delivery_date": "['2018-02-14']",
94+
"delivery_date": "2018-02-14",
9595
"duties_and_taxes": 1.27,
9696
"service_name": "Pro",
9797
"service_type": "Pro",

0 commit comments

Comments
 (0)