go-common/app/admin/main/videoup-task/service/video_test.go
2019-04-22 18:49:16 +08:00

22 lines
407 B
Go

package service
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func Test_getVideoOperInfo(t *testing.T) {
Init()
convey.Convey("getVideoOperInfo", t, func() {
list, err := s.getVideoOperInfo(context.TODO(), 8942606)
for _, info := range list {
t.Logf("info(%+v)", info)
}
convey.So(err, convey.ShouldBeNil)
convey.So(len(list), convey.ShouldEqual, 66)
})
}