From: Bjørn Erik Pedersen Date: Mon, 14 Oct 2024 07:28:18 +0000 (+0200) Subject: config: Imrove uglyurls section test X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=21366e04111592a585a2c6754c00b84ab5048a13;p=brevno-suite%2Fhugo config: Imrove uglyurls section test Updates #12926 --- diff --git a/config/allconfig/allconfig_integration_test.go b/config/allconfig/allconfig_integration_test.go index 1b677884f..38e763b70 100644 --- a/config/allconfig/allconfig_integration_test.go +++ b/config/allconfig/allconfig_integration_test.go @@ -161,7 +161,6 @@ title: "p3" b.AssertFileContent("public/page/2/index.html", "pagination-default") } - func TestMapUglyURLs(t *testing.T) { files := ` -- hugo.toml -- @@ -173,8 +172,6 @@ func TestMapUglyURLs(t *testing.T) { c := b.H.Configs.Base - mapUglyURLs, isMap := c.UglyURLs.(map[string]bool) - - b.Assert(isMap, qt.Equals, true) - b.Assert(mapUglyURLs["posts"], qt.Equals, true) + b.Assert(c.C.IsUglyURLSection("posts"), qt.IsTrue) + b.Assert(c.C.IsUglyURLSection("blog"), qt.IsFalse) }