You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
910 B

package dao
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestDao_ThemeInfoByMid(t *testing.T) {
convey.Convey("test theme info by mid", t, func(ctx convey.C) {
mid := int64(545840)
data, err := d.ThemeInfoByMid(context.Background(), mid)
convey.So(err, convey.ShouldBeNil)
for _, v := range data {
convey.Printf("%+v", v)
}
})
}
func TestDao_RawTheme(t *testing.T) {
convey.Convey("test theme", t, func(ctx convey.C) {
mid := int64(545840)
data, err := d.RawTheme(context.Background(), mid)
convey.So(err, convey.ShouldBeNil)
for _, v := range data.List {
convey.Printf("%+v", v)
}
})
}
func TestDao_ThemeActive(t *testing.T) {
convey.Convey("test theme active", t, func(ctx convey.C) {
mid := int64(27515256)
themeID := int64(11)
err := d.ThemeActive(context.Background(), mid, themeID)
convey.So(err, convey.ShouldBeNil)
})
}