22 lines
347 B
Go
22 lines
347 B
Go
package cms
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
|
"git.rosy.net.cn/jx-callback/globals/testinit"
|
|
)
|
|
|
|
func init() {
|
|
testinit.Init()
|
|
}
|
|
|
|
func TestGetQiniuUploadToken(t *testing.T) {
|
|
token, err := GetQiniuUploadToken(jxcontext.AdminCtx, "", "")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
fmt.Print(token)
|
|
}
|