This commit is contained in:
邹宗楠
2023-01-13 17:25:09 +08:00
parent eec044c49c
commit a134b95fd0
7 changed files with 56 additions and 39 deletions

View File

@@ -1,5 +1,7 @@
package jdapi
import "testing"
//
//import (
// "fmt"
@@ -20,15 +22,16 @@ package jdapi
// baseapi.SugarLogger.Debug(utils.Format4Output(result, false), err)
//}
//
//func TestQueryCategoriesByOrgCode(t *testing.T) {
// result, err := api.QueryCategoriesByOrgCode()
// if err != nil {
// t.Fatal(err)
// }
// if len(result) == 0 {
// t.Fatal("QueryCategoriesByOrgCode category list is empty!")
// }
//}
func TestQueryCategoriesByOrgCode(t *testing.T) {
result, err := api.QueryCategoriesByOrgCode()
if err != nil {
t.Fatal(err)
}
if len(result) == 0 {
t.Fatal("QueryCategoriesByOrgCode category list is empty!")
}
}
//
//func TestQueryChildCategoriesForOP(t *testing.T) {
// result, err := api.QueryChildCategoriesForOP(0)