File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
services/web/server/tests/unit/with_dbs/04/products Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 88
99import pytest
1010from models_library .api_schemas_webserver import WEBSERVER_RPC_NAMESPACE
11+ from models_library .api_schemas_webserver .products import CreditResultRpcGet
1112from models_library .products import ProductName
1213from models_library .rabbitmq_basic_types import RPCMethodName
1314from pydantic import TypeAdapter
@@ -74,7 +75,7 @@ async def test_get_credit_amount(
7475 dollar_amount = Decimal (900 ),
7576 product_name = "s4l" ,
7677 )
77- credit_result = CreditResultGet .model_validate (result )
78+ credit_result = CreditResultRpcGet .model_validate (result )
7879 assert credit_result .credit_amount == 100
7980
8081 result = await rpc_client .request (
@@ -83,7 +84,7 @@ async def test_get_credit_amount(
8384 dollar_amount = Decimal (900 ),
8485 product_name = "tis" ,
8586 )
86- credit_result = CreditResultGet .model_validate (result )
87+ credit_result = CreditResultRpcGet .model_validate (result )
8788 assert credit_result .credit_amount == 180
8889
8990 with pytest .raises (RPCServerError ) as exc_info :
You can’t perform that action at this time.
0 commit comments