aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/site
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-08-10 21:05:17 +0200
committerBjørn Erik Pedersen <[email protected]>2019-08-12 13:26:32 +0200
commit9e571827055dedb46b78c5db3d17d6913f14870b (patch)
treef5f0108afe0c9385ff6dc27664943d9f719f57ad /tpl/site
parent6027ee11082d0b9d72de1d4d1980a702be294ad2 (diff)
downloadhugo-9e571827055dedb46b78c5db3d17d6913f14870b.tar.gz
hugo-9e571827055dedb46b78c5db3d17d6913f14870b.zip
tests: Convert from testify to quicktest
Diffstat (limited to 'tpl/site')
-rw-r--r--tpl/site/init_test.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/tpl/site/init_test.go b/tpl/site/init_test.go
index 5ef885677..f4a7935ad 100644
--- a/tpl/site/init_test.go
+++ b/tpl/site/init_test.go
@@ -16,15 +16,17 @@ package site
import (
"testing"
- "github.com/spf13/viper"
-
+ qt "github.com/frankban/quicktest"
"github.com/gohugoio/hugo/deps"
+ "github.com/gohugoio/hugo/htesting/hqt"
"github.com/gohugoio/hugo/resources/page"
"github.com/gohugoio/hugo/tpl/internal"
- "github.com/stretchr/testify/require"
+ "github.com/spf13/viper"
)
func TestInit(t *testing.T) {
+ c := qt.New(t)
+
var found bool
var ns *internal.TemplateFuncsNamespace
v := viper.New()
@@ -39,6 +41,6 @@ func TestInit(t *testing.T) {
}
}
- require.True(t, found)
- require.IsType(t, s, ns.Context())
+ c.Assert(found, qt.Equals, true)
+ c.Assert(ns.Context(), hqt.IsSameType, s)
}