24 lines
547 B
Go
24 lines
547 B
Go
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))
|
|
}
|