Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package model
import (
. "github.com/smartystreets/goconvey/convey"
"testing"
)
var qv = &QATaskVideo{
VideoDetail: VideoDetail{
Attribute: 1048691,
UPGroups: []int64{1, 2},
},
}
func TestQATaskVideo_GetAttributeList(t *testing.T) {
Convey("GetAttributeqv.AttributeList", t, func() {
qv.GetAttributeList()
t.Logf("attributeList(%+v)", qv.AttributeList)
So(qv.AttributeList["norank"], ShouldEqual, 1)
So(qv.AttributeList["nosearch"], ShouldEqual, 1)
So(qv.AttributeList["nodynamic"], ShouldEqual, 1)
So(qv.AttributeList["norecommend"], ShouldEqual, 1)
So(qv.AttributeList["oversea_block"], ShouldEqual, 1)
So(qv.AttributeList["push_blog"], ShouldEqual, 1)
})
}