Добавлен провайдер доставки CSE: SOAP-адаптер (Calc + SaveDocuments), маршрутизация init-payment по провайдеру, обобщение tariff_code до строки, география CSE в cities_map
Deploy / deploy (push) Failing after 52s
Deploy / deploy (push) Failing after 52s
This commit is contained in:
@@ -34,7 +34,7 @@ def test_map_cdek_response_maps_all_tariffs_to_unified_model() -> None:
|
||||
assert [price.currency for price in result] == ["RUB", "USD"]
|
||||
assert [price.delivery_days_min for price in result] == [2, 5]
|
||||
assert [price.delivery_days_max for price in result] == [4, 7]
|
||||
assert [price.tariff_code for price in result] == [7, 136]
|
||||
assert [price.tariff_code for price in result] == ["7", "136"]
|
||||
|
||||
|
||||
def test_map_cdek_response_returns_none_tariff_code_when_missing() -> None:
|
||||
|
||||
@@ -129,7 +129,7 @@ def test_order_payload_for_doc_omits_dimensions() -> None:
|
||||
"price": 50000,
|
||||
"deliveryDaysMin": 1,
|
||||
"deliveryDaysMax": 2,
|
||||
"tariffCode": 535,
|
||||
"tariffCode": "535",
|
||||
},
|
||||
"parcelType": "doc",
|
||||
"docPackaging": "envelope",
|
||||
|
||||
@@ -132,7 +132,7 @@ def test_provider_get_payment_price_omits_dimensions_for_doc() -> None:
|
||||
"price": 50000,
|
||||
"deliveryDaysMin": 1,
|
||||
"deliveryDaysMax": 2,
|
||||
"tariffCode": 535,
|
||||
"tariffCode": "535",
|
||||
},
|
||||
"parcelType": "doc",
|
||||
"docPackaging": "envelope",
|
||||
|
||||
Reference in New Issue
Block a user