This commit is contained in:
richboo111
2023-02-21 16:26:51 +08:00
parent 9f022a8784
commit 555abd8bd2
4 changed files with 35 additions and 18 deletions

View File

@@ -1,6 +1,9 @@
package jdapi
import "testing"
import (
"git.rosy.net.cn/baseapi/utils"
"testing"
)
//
//import (
@@ -272,14 +275,14 @@ func TestChangeShopCategoryOrder(t *testing.T) {
// t.Log(utils.Format4Output(result, false))
//}
//
//func TestGetSpuSaleAttr(t *testing.T) {
// result, err := api.GetSpuSaleAttr("3628")
// if err != nil {
// t.Fatal(err)
// }
// t.Log(utils.Format4Output(result, false))
//}
//
func TestGetSpuSaleAttr(t *testing.T) {
result, err := api.GetSpuSaleAttr("30331")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
//func TestAddSku(t *testing.T) {
// str := `
// {"brandId":35247,
@@ -331,13 +334,14 @@ func TestChangeShopCategoryOrder(t *testing.T) {
// t.Log(utils.Format4Output(result, false))
//}
//
//func TestGetSkuStatus(t *testing.T) {
// result, err := api.GetSkuStatus("6092943")
// if err != nil {
// t.Fatal(err)
// }
// t.Log(utils.Format4Output(result, false))
//}
func TestGetSkuStatus(t *testing.T) {
result, err := api.GetSkuStatus("6043681")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
//
//func TestUpdateSpuSaleAttr(t *testing.T) {
// err := api.UpdateSpuSaleAttr("3628", "1001", "", "10", "hello")