Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/site/init_test.go')
-rw-r--r--tpl/site/init_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/tpl/site/init_test.go b/tpl/site/init_test.go
index 00704d943..5ef885677 100644
--- a/tpl/site/init_test.go
+++ b/tpl/site/init_test.go
@@ -16,8 +16,10 @@ package site
import (
"testing"
+ "github.com/spf13/viper"
+
"github.com/gohugoio/hugo/deps"
- "github.com/gohugoio/hugo/htesting"
+ "github.com/gohugoio/hugo/resources/page"
"github.com/gohugoio/hugo/tpl/internal"
"github.com/stretchr/testify/require"
)
@@ -25,7 +27,9 @@ import (
func TestInit(t *testing.T) {
var found bool
var ns *internal.TemplateFuncsNamespace
- s := htesting.NewTestHugoSite()
+ v := viper.New()
+ v.Set("contentDir", "content")
+ s := page.NewDummyHugoSite(v)
for _, nsf := range internal.TemplateFuncsNamespaceRegistry {
ns = nsf(&deps.Deps{Site: s})