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:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-01-01 14:20:07 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-01-01 14:20:07 +0300
commitd632dd7d74a1b338df97babfc7a1915c0c8814de (patch)
tree3840aed8c34518ab3091a63c1a327940e0a3dfca /hugolib/page_test.go
parent0671ef55938d38778684502d6a1f107c9358555f (diff)
hugolib: Make an RST test optional
If no RST installed.
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r--hugolib/page_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index 50263d483..c59177652 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -25,6 +25,7 @@ import (
"github.com/gohugoio/hugo/htesting"
"github.com/gohugoio/hugo/markup/asciidocext"
+ "github.com/gohugoio/hugo/markup/rst"
"github.com/gohugoio/hugo/config"
@@ -376,7 +377,7 @@ func testAllMarkdownEnginesForPages(t *testing.T,
{"md", func() bool { return true }},
{"mmark", func() bool { return true }},
{"ad", func() bool { return asciidocext.Supports() }},
- {"rst", func() bool { return true }},
+ {"rst", func() bool { return rst.Supports() }},
}
for _, e := range engines {
@@ -385,7 +386,6 @@ func testAllMarkdownEnginesForPages(t *testing.T,
}
t.Run(e.ext, func(t *testing.T) {
-
cfg, fs := newTestCfg(func(cfg config.Provider) error {
for k, v := range settings {
cfg.Set(k, v)
@@ -433,7 +433,6 @@ func testAllMarkdownEnginesForPages(t *testing.T,
b.Assert(home, qt.Not(qt.IsNil))
b.Assert(home.File().Path(), qt.Equals, homePath)
b.Assert(content(home), qt.Contains, "Home Page Content")
-
})
}