This commit is contained in:
gazebo
2018-09-22 23:28:52 +08:00
parent f21b4e614d
commit b936d3354b
10 changed files with 100 additions and 11 deletions

View File

@@ -4,6 +4,7 @@ import (
"testing"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/model/dao"
)
func TestReadStore(t *testing.T) {
@@ -15,7 +16,8 @@ func TestReadStore(t *testing.T) {
}
func TestUpdateStore(t *testing.T) {
err := new(PurchaseHandler).UpdateStore(100077, "autotest")
db := dao.GetDB()
err := new(PurchaseHandler).UpdateStore(db, 100077, "autotest")
if err != nil {
t.Fatal(err.Error())
}