fix cdek client

This commit is contained in:
Раис Юсупалиев
2026-03-08 23:35:04 +03:00
parent f799f2ba03
commit 2d68aff34d
7 changed files with 105 additions and 8 deletions
@@ -8,6 +8,7 @@ from app.adapters.delivery_providers.cdek.client import (
CDEKClient,
CDEKClientError,
CDEKProvider,
CDEKRequestError,
)
from app.config import AdapterConfig, Settings
from app.schemas.request import DeliveryEntity, DeliveryRequest
@@ -254,7 +255,7 @@ def test_cdek_client_raises_when_city_code_not_found() -> None:
retry_attempts=0,
)
with pytest.raises(CDEKClientError, match="no matches"):
with pytest.raises(CDEKRequestError, match="no matches"):
asyncio.run(client.get_raw_price(request))