feat(weibo): 增加协作 CK 批量复制与商品图片代理
This commit is contained in:
@@ -274,7 +274,20 @@ def test_mall_exchange_and_point_queries():
|
||||
{
|
||||
"code": 100000,
|
||||
"data": {
|
||||
"list": [{"id": 37, "goods_name": "会员1天卡", "price": 100}],
|
||||
"list": [
|
||||
{
|
||||
"id": 37,
|
||||
"goods_name": "会员1天卡",
|
||||
"goods_image": "http://wx3.sinaimg.cn/large/demo.jpg",
|
||||
"price": 100,
|
||||
},
|
||||
{
|
||||
"id": 38,
|
||||
"goods_name": "会员3天卡",
|
||||
"goods_image": "//wx4.sinaimg.cn/large/demo-2.jpg",
|
||||
"price": 200,
|
||||
},
|
||||
],
|
||||
"weidou_balance": 100,
|
||||
},
|
||||
},
|
||||
@@ -305,6 +318,8 @@ def test_mall_exchange_and_point_queries():
|
||||
points = client.list_point_history("bowen_tjg")
|
||||
|
||||
assert mall["weidou_balance"] == 100
|
||||
assert mall["list"][0]["goods_image"] == "https://wx3.sinaimg.cn/large/demo.jpg"
|
||||
assert mall["list"][1]["goods_image"] == "https://wx4.sinaimg.cn/large/demo-2.jpg"
|
||||
assert records["totalCount"] == 0
|
||||
assert points["total"] == 1
|
||||
assert session.calls[0][2]["params"]["F"] == "bowen_tjg"
|
||||
|
||||
Reference in New Issue
Block a user