tests: Convert from testify to quicktest

This commit is contained in:
Bjørn Erik Pedersen 2019-08-10 21:05:17 +02:00
parent 6027ee1108
commit 9e57182705
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
195 changed files with 3919 additions and 3693 deletions

View file

@ -21,13 +21,13 @@ import (
"github.com/gohugoio/hugo/helpers"
"github.com/stretchr/testify/require"
qt "github.com/frankban/quicktest"
)
func TestSiteStats(t *testing.T) {
t.Parallel()
assert := require.New(t)
c := qt.New(t)
siteConfig := `
baseURL = "http://example.com/blog"
@ -93,6 +93,6 @@ aliases: [/Ali%d]
helpers.ProcessingStatsTable(&buff, stats...)
assert.Contains(buff.String(), "Pages | 19 | 6")
c.Assert(buff.String(), qt.Contains, "Pages | 19 | 6")
}