mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
tests: Convert from testify to quicktest
This commit is contained in:
parent
6027ee1108
commit
9e57182705
195 changed files with 3919 additions and 3693 deletions
|
@ -20,6 +20,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
qt "github.com/frankban/quicktest"
|
||||
)
|
||||
|
||||
type siteBenchmarkTestcase struct {
|
||||
|
@ -182,9 +184,9 @@ contentDir="content/sv"
|
|||
},
|
||||
func(s *sitesBuilder) {
|
||||
s.CheckExists("public/blog/mybundle/index.html")
|
||||
s.Assertions.Equal(4, len(s.H.Sites))
|
||||
s.Assertions.Equal(len(s.H.Sites[0].RegularPages()), len(s.H.Sites[1].RegularPages()))
|
||||
s.Assertions.Equal(30, len(s.H.Sites[0].RegularPages()))
|
||||
s.Assert(len(s.H.Sites), qt.Equals, 4)
|
||||
s.Assert(len(s.H.Sites[0].RegularPages()), qt.Equals, len(s.H.Sites[1].RegularPages()))
|
||||
s.Assert(len(s.H.Sites[0].RegularPages()), qt.Equals, 30)
|
||||
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue