From: Bjørn Erik Pedersen Date: Sat, 4 Feb 2017 16:15:07 +0000 (+0700) Subject: hugolib: Skip rendering for the page tests X-Git-Tag: v0.19~91 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=19aff029b1b9b285cf6987860e9bd3b759853acc;p=brevno-suite%2Fhugo hugolib: Skip rendering for the page tests --- diff --git a/hugolib/page_test.go b/hugolib/page_test.go index 10f2ed61..b40d122a 100644 --- a/hugolib/page_test.go +++ b/hugolib/page_test.go @@ -637,7 +637,7 @@ func testAllMarkdownEnginesForPages(t *testing.T, writeSource(t, fs, filepath.Join(contentDir, fileSourcePairs[i]), fileSourcePairs[i+1]) } - s := buildSingleSite(t, deps.DepsCfg{Fs: fs}, BuildCfg{}) + s := buildSingleSite(t, deps.DepsCfg{Fs: fs}, BuildCfg{SkipRender: true}) require.Len(t, s.RegularPages, len(pageSources)) @@ -750,7 +750,7 @@ func TestPageWithDelimiterForMarkdownThatCrossesBorder(t *testing.T) { writeSource(t, fs, filepath.Join("content", "simple.md"), simplePageWithSummaryDelimiterAndMarkdownThatCrossesBorder) - s := buildSingleSite(t, deps.DepsCfg{Fs: fs}, BuildCfg{}) + s := buildSingleSite(t, deps.DepsCfg{Fs: fs}, BuildCfg{SkipRender: true}) require.Len(t, s.RegularPages, 1) @@ -778,7 +778,7 @@ title: Raw writeSource(t, fs, filepath.Join("layouts", "_default", "single.html"), `{{ .RawContent }}`) - s := buildSingleSite(t, deps.DepsCfg{Fs: fs}, BuildCfg{}) + s := buildSingleSite(t, deps.DepsCfg{Fs: fs}, BuildCfg{SkipRender: true}) require.Len(t, s.RegularPages, 1) p := s.RegularPages[0]