Simplify some integration tests

This commit is contained in:
Bjørn Erik Pedersen
2022-02-10 19:49:20 +01:00
parent d1109f590a
commit da4866c2be
4 changed files with 8 additions and 22 deletions

View File

@@ -16,13 +16,11 @@ package templates_test
import (
"testing"
qt "github.com/frankban/quicktest"
"github.com/gohugoio/hugo/hugolib"
)
func TestExecuteAsTemplateMultipleLanguages(t *testing.T) {
c := qt.New(t)
t.Parallel()
files := `
-- config.toml --
@@ -63,7 +61,7 @@ LangURL: {{ relLangURL "foo" }}
b := hugolib.NewIntegrationTestBuilder(
hugolib.IntegrationTestConfig{
T: c,
T: t,
TxtarString: files,
}).Build()