- auto create jd promotion on jd new promotion event
This commit is contained in:
23
business/jxstore/promotion/jd_promotion_test.go
Normal file
23
business/jxstore/promotion/jd_promotion_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package promotion
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"git.rosy.net.cn/jx-callback/globals/beegodb"
|
||||
"github.com/astaxie/beego"
|
||||
)
|
||||
|
||||
func init() {
|
||||
beego.InitBeegoBeforeTest("/Users/xujianhua/go/src/git.rosy.net.cn/jx-callback/conf/app.conf")
|
||||
beego.BConfig.RunMode = "alpha" // InitBeegoBeforeTest会将runmode设置为test
|
||||
|
||||
globals.Init()
|
||||
beegodb.Init()
|
||||
api.Init()
|
||||
}
|
||||
|
||||
func TestCreateLocalPromotionFromRemote(t *testing.T) {
|
||||
t.Log(createLocalPromotionFromRemote(14510904))
|
||||
}
|
||||
Reference in New Issue
Block a user