- up.
This commit is contained in:
@@ -32,7 +32,7 @@ func TestShopCategoryUpdate(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestShopCategoryDelete(t *testing.T) {
|
||||
err := api.ShopCategoryDelete(testShopID, 153760195017120)
|
||||
err := api.ShopCategoryDelete(testShopID, 153760292217132)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -57,7 +57,7 @@ func TestSkuList(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSkuCreate(t *testing.T) {
|
||||
result, err := api.SkuCreate(testShopID, 114, map[string]interface{}{
|
||||
result, err := api.SkuCreate(testShopID, 116, map[string]interface{}{
|
||||
"name": "测试商品",
|
||||
"status": SkuStatusOnline,
|
||||
"left_num": MaxLeftNum,
|
||||
@@ -79,3 +79,10 @@ func TestSkuCreate(t *testing.T) {
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
}
|
||||
|
||||
func TestSkuShopCategoryMap(t *testing.T) {
|
||||
err := api.SkuShopCategoryMap(testShopID, 15378849314129969, "153760472317166")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user