From: Joe Mooring Date: Thu, 29 Jan 2026 07:21:35 +0000 (-0800) Subject: tpl/tplimpl: Remove failing Twitter tests X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f522a7282b1201342c73acbb3c91dc9d12897a7d;p=brevno-suite%2Fhugo tpl/tplimpl: Remove failing Twitter tests In v0.141.0 we deprecated: - privacy.twitter.simple in favor of privacy.x.simple - privacy.twitter.disable in favor of privacy.x.disable Use of those settings is now causing the integration test to fail. --- diff --git a/tpl/tplimpl/shortcodes_integration_test.go b/tpl/tplimpl/shortcodes_integration_test.go index ba6a63b22..e6f566848 100644 --- a/tpl/tplimpl/shortcodes_integration_test.go +++ b/tpl/tplimpl/shortcodes_integration_test.go @@ -573,16 +573,6 @@ title: p5 filesOriginal := files - // Test privacy.twitter.simple - files = strings.ReplaceAll(filesOriginal, "#CONFIG", "privacy.twitter.simple=true") - b = hugolib.Test(t, files) - htmlFiles = []string{ - b.FileContent("public/p2/index.html"), - b.FileContent("public/p3/index.html"), - b.FileContent("public/p5/index.html"), - } - b.Assert(htmlFiles, hqt.IsAllElementsEqual) - // Test privacy.x.simple files = strings.ReplaceAll(filesOriginal, "#CONFIG", "privacy.x.simple=true") b = hugolib.Test(t, files) @@ -599,19 +589,6 @@ title: p5 } b.Assert(htmlFiles, hqt.IsAllElementsEqual) - // Test privacy.twitter.disable - files = strings.ReplaceAll(filesOriginal, "#CONFIG", "privacy.twitter.disable = true") - b = hugolib.Test(t, files) - b.AssertFileContent("public/p1/index.html", "") - htmlFiles = []string{ - b.FileContent("public/p1/index.html"), - b.FileContent("public/p2/index.html"), - b.FileContent("public/p3/index.html"), - b.FileContent("public/p4/index.html"), - b.FileContent("public/p4/index.html"), - } - b.Assert(htmlFiles, hqt.IsAllElementsEqual) - // Test privacy.x.disable files = strings.ReplaceAll(filesOriginal, "#CONFIG", "privacy.x.disable = true") b = hugolib.Test(t, files)