]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
tpl/tplimpl: Remove failing Twitter tests
authorJoe Mooring <joe@mooring.com>
Thu, 29 Jan 2026 07:21:35 +0000 (23:21 -0800)
committerGitHub <noreply@github.com>
Thu, 29 Jan 2026 07:21:35 +0000 (23:21 -0800)
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.

tpl/tplimpl/shortcodes_integration_test.go

index ba6a63b22e0dfc36e2bc45ea17b9db783a30d0b8..e6f5668482327f637064ac1d40ba72b0d3349a15 100644 (file)
@@ -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)