test: 增强订单创建金额断言
This commit is contained in:
@@ -1231,7 +1231,7 @@ def phase8_order(s_consumer: Session, s_actor: Session, player_id, service_id, s
|
||||
and same_id(order_obj.get("playerId"), player_id)
|
||||
and same_id(order_obj.get("shopId"), shop_id)
|
||||
and order_obj.get("status") == "pending_payment"
|
||||
and as_decimal(order_obj.get("totalPrice")) == Decimal("50")
|
||||
and as_decimal(order_obj.get("totalPrice")) == Decimal("60")
|
||||
and order_obj.get("note") == "test order",
|
||||
body,
|
||||
)
|
||||
@@ -1266,7 +1266,9 @@ def phase8_order(s_consumer: Session, s_actor: Session, player_id, service_id, s
|
||||
"created order detail matches participants",
|
||||
same_id(body.get("consumerId"), consumer_user_id)
|
||||
and same_id(body.get("playerId"), player_id)
|
||||
and same_id(body.get("shopId"), shop_id),
|
||||
and same_id(body.get("shopId"), shop_id)
|
||||
and as_decimal(body.get("totalPrice")) == Decimal("60")
|
||||
and body.get("note") == "test order",
|
||||
body,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user