File: 0008-Skip-tests-for-vimeo-and-x-shortcodes.patch

package info (click to toggle)
hugo 0.152.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 47,460 kB
  • sloc: javascript: 31,886; xml: 350; makefile: 75; asm: 67; sh: 40
file content (48 lines) | stat: -rw-r--r-- 1,757 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From: "Dr. Tobias Quathamer" <toddy@debian.org>
Date: Fri, 26 Sep 2025 23:12:16 +0200
Subject: Skip tests for vimeo and x shortcodes and dart sass

The vimeo and x shortcodes need internet access.
Dart sass is not supported in the Debian build of hugo,
because dart sass is not available yet in Debian.

Forwarded: not-needed
---
 .../resource_transformers/tocss/dartsass/dartsass_integration_test.go  | 3 +++
 tpl/tplimpl/shortcodes_integration_test.go                             | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/resources/resource_transformers/tocss/dartsass/dartsass_integration_test.go b/resources/resource_transformers/tocss/dartsass/dartsass_integration_test.go
index 89d503d..ea385bc 100644
--- a/resources/resource_transformers/tocss/dartsass/dartsass_integration_test.go
+++ b/resources/resource_transformers/tocss/dartsass/dartsass_integration_test.go
@@ -645,6 +645,9 @@ T1: {{ $r.Content }}
 
 func TestSilenceDependencyDeprecations(t *testing.T) {
 	t.Parallel()
+	if !dartsass.Supports() {
+		t.Skip()
+	}
 
 	files := `
 -- hugo.toml --
diff --git a/tpl/tplimpl/shortcodes_integration_test.go b/tpl/tplimpl/shortcodes_integration_test.go
index 244a259..a53637a 100644
--- a/tpl/tplimpl/shortcodes_integration_test.go
+++ b/tpl/tplimpl/shortcodes_integration_test.go
@@ -461,6 +461,7 @@ title: p1 (de)
 }
 
 func TestVimeoShortcode(t *testing.T) {
+	t.Skip("This tests needs internet access")
 	t.Parallel()
 
 	files := `
@@ -508,6 +509,7 @@ Content: {{ .Content }}
 // We deprecated the twitter, tweet (alias of twitter), and twitter_simple
 // shortcodes in v0.141.0, replacing them with x and x_simple.
 func TestXShortcodes(t *testing.T) {
+	t.Skip("This tests needs internet access")
 	t.Parallel()
 
 	files := `