This commit is contained in:
gazebo
2018-09-20 17:02:25 +08:00
parent 1fa6540f19
commit d8eb17f6be
9 changed files with 176 additions and 104 deletions

View File

@@ -0,0 +1,22 @@
package ebai
import (
"testing"
"git.rosy.net.cn/baseapi/utils"
)
func TestReadStore(t *testing.T) {
result, err := new(PurchaseHandler).ReadStore(utils.Int2Str(testShopBaiduID))
if err != nil {
t.Fatal(err.Error())
}
t.Log(utils.Format4Output(result, false))
}
func TestUpdateStore(t *testing.T) {
err := new(PurchaseHandler).UpdateStore(100002, "autotest")
if err != nil {
t.Fatal(err.Error())
}
}