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

@@ -18,12 +18,10 @@ import (
"testing"
"github.com/gohugoio/hugo/hugolib"
qt "github.com/frankban/quicktest"
)
func TestUnmarshal(t *testing.T) {
c := qt.New(t)
t.Parallel()
files := `
-- assets/api/myapi.yaml --
@@ -60,7 +58,7 @@ API: {{ $api.Info.Title | safeHTML }}
b := hugolib.NewIntegrationTestBuilder(
hugolib.IntegrationTestConfig{
T: c,
T: t,
Running: true,
TxtarString: files,
},