mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 01:20:25 +08:00
21 lines
420 B
Go
21 lines
420 B
Go
package models
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeCommon/pkg/userconfigs"
|
|
_ "github.com/go-sql-driver/mysql"
|
|
_ "github.com/iwind/TeaGo/bootstrap"
|
|
"github.com/iwind/TeaGo/dbs"
|
|
"testing"
|
|
)
|
|
|
|
func TestUserDAO_UpdateUserFeatures(t *testing.T) {
|
|
var dao = NewUserDAO()
|
|
var tx *dbs.Tx
|
|
err := dao.UpdateUsersFeatures(tx, []string{
|
|
userconfigs.UserFeatureCodeServerACME,
|
|
}, false)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|