Добавлен POST /api/v1/delivery/suggest-address
This commit is contained in:
@@ -65,6 +65,9 @@ def test_dadata_provider_maps_response_to_unified_model() -> None:
|
||||
"value": "г Москва, ул Хабаровская",
|
||||
"unrestricted_value": "107241, г Москва, ул Хабаровская",
|
||||
"data": {
|
||||
"street": "Хабаровская",
|
||||
"house": "1",
|
||||
"flat": "25",
|
||||
"postal_code": "107241",
|
||||
"country_iso_code": "RU",
|
||||
"geo_lat": "55.821168",
|
||||
@@ -89,8 +92,10 @@ def test_dadata_provider_maps_response_to_unified_model() -> None:
|
||||
|
||||
assert result == [
|
||||
AddressSuggestion(
|
||||
provider="dadata",
|
||||
address="107241, г Москва, ул Хабаровская",
|
||||
street="Хабаровская",
|
||||
house="1",
|
||||
flat="25",
|
||||
postal_code="107241",
|
||||
)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user