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.
25 lines
661 B
25 lines
661 B
package newbiedao |
|
|
|
import ( |
|
"context" |
|
"go-common/app/interface/main/growup/model" |
|
"testing" |
|
|
|
"github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestNewbiedaoGetVideoUp(t *testing.T) { |
|
convey.Convey("GetVideoUp", t, func(ctx convey.C) { |
|
var ( |
|
c = context.Background() |
|
req = &model.NewbieLetterReq{Aid: 10110467, Mid: 27515398} |
|
) |
|
ctx.Convey("When everything goes positive", func(ctx convey.C) { |
|
videoUpArchive, err := d.GetVideoUp(c, req.Aid) |
|
ctx.Convey("Then err should be nil.videoUpArchive should not be nil.", func(ctx convey.C) { |
|
ctx.So(err, convey.ShouldBeNil) |
|
ctx.So(videoUpArchive, convey.ShouldNotBeNil) |
|
}) |
|
}) |
|
}) |
|
}
|
|
|