1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user