- 京东门店信息查询相关的三个API返回值改为具体的struct
This commit is contained in:
@@ -58,12 +58,12 @@ func TestBatchUpdateOutSkuId(t *testing.T) {
|
||||
|
||||
func TestQuerySkuInfos(t *testing.T) {
|
||||
pageSize := 20
|
||||
result, totalCount, err := api.QuerySkuInfos("", 0, 0, pageSize, true)
|
||||
result, totalCount, err := api.QuerySkuInfos("一个高级商品", 0, 0, pageSize, true)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(result) != pageSize || totalCount == 0 {
|
||||
baseapi.SugarLogger.Debug(result)
|
||||
baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
|
||||
t.Fatalf("QuerySkuInfos result size is not same as requested:%d", pageSize)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user