File: 0011-tests-Drop-yaml-tests.patch

package info (click to toggle)
php-oscarotero-gettext 4.8.12-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,652 kB
  • sloc: php: 5,231; xml: 22; javascript: 18; makefile: 14
file content (216 lines) | stat: -rw-r--r-- 13,311 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
From: James Valleroy <jvalleroy@mailbox.org>
Date: Wed, 28 Feb 2024 22:29:13 -0500
Subject: tests: Drop yaml tests

They are failing with php-symfony 6 due to minor changes in the output
(double-quoted strings vs single-quoted strings). The only reverse dependency
currently (shaarli) does not use any extractors or generators from this
package. So it is not an important feature currently.

Forwarded: not-needed
---
 tests/AssetsTest.php | 44 --------------------------------------------
 1 file changed, 44 deletions(-)

diff --git a/tests/AssetsTest.php b/tests/AssetsTest.php
index e36c079..2fe0666 100644
--- a/tests/AssetsTest.php
+++ b/tests/AssetsTest.php
@@ -34,8 +34,6 @@ class AssetsTest extends AbstractTestCase
         $this->assertContent($translations, 'po/Csv');
         $this->assertContent($translations, 'po/CsvDictionary');
         $this->assertContent($translations, 'po/Xliff');
-        $this->assertContent($translations, 'po/Yaml');
-        $this->assertContent($translations, 'po/YamlDictionary');
 
         $this->runTestFormat('po/Po', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('po/Mo', $countTranslations - 1, $countTranslated - 1, $countHeaders);
@@ -46,8 +44,6 @@ class AssetsTest extends AbstractTestCase
         $this->runTestFormat('po/JsonDictionary', $countTranslations - 1, $countTranslated - 1);
         $this->runTestFormat('po/Csv', $countTranslations - 1, $countTranslated - 1, $countHeaders);
         $this->runTestFormat('po/CsvDictionary', $countTranslations - 1, $countTranslated - 1);
-        $this->runTestFormat('po/Yaml', $countTranslations - 1, $countTranslated - 1, $countHeaders);
-        $this->runTestFormat('po/YamlDictionary', $countTranslations - 1, $countTranslated - 1);
     }
 
     public function testPo2()
@@ -70,8 +66,6 @@ class AssetsTest extends AbstractTestCase
         $this->assertContent($translations, 'po2/Csv');
         $this->assertContent($translations, 'po2/CsvDictionary');
         $this->assertContent($translations, 'po2/Xliff');
-        $this->assertContent($translations, 'po2/Yaml');
-        $this->assertContent($translations, 'po2/YamlDictionary');
 
         $this->runTestFormat('po2/Po', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('po2/Mo', $countTranslations - 3, $countTranslated, $countHeaders);
@@ -82,8 +76,6 @@ class AssetsTest extends AbstractTestCase
         $this->runTestFormat('po2/JsonDictionary', $countTranslations, $countTranslated);
         $this->runTestFormat('po2/Csv', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('po2/CsvDictionary', $countTranslations, $countTranslated);
-        $this->runTestFormat('po2/Yaml', $countTranslations, $countTranslated, $countHeaders);
-        $this->runTestFormat('po2/YamlDictionary', $countTranslations, $countTranslated);
     }
 
     public function testPo3()
@@ -106,8 +98,6 @@ class AssetsTest extends AbstractTestCase
         $this->assertContent($translations, 'po3/Csv');
         $this->assertContent($translations, 'po3/CsvDictionary');
         $this->assertContent($translations, 'po3/Xliff');
-        $this->assertContent($translations, 'po3/Yaml');
-        $this->assertContent($translations, 'po3/YamlDictionary');
 
         $this->runTestFormat('po3/Po', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('po3/Mo', $countTranslations, $countTranslated, $countHeaders);
@@ -118,8 +108,6 @@ class AssetsTest extends AbstractTestCase
         $this->runTestFormat('po3/JsonDictionary', $countTranslations, $countTranslated);
         $this->runTestFormat('po3/Csv', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('po3/CsvDictionary', $countTranslations, $countTranslated);
-        $this->runTestFormat('po3/Yaml', $countTranslations, $countTranslated, $countHeaders);
-        $this->runTestFormat('po3/YamlDictionary', $countTranslations, $countTranslated);
     }
 
     public function testJed()
@@ -142,8 +130,6 @@ class AssetsTest extends AbstractTestCase
         $this->assertContent($translations, 'jed/Csv');
         $this->assertContent($translations, 'jed/CsvDictionary');
         $this->assertContent($translations, 'jed/Xliff');
-        $this->assertContent($translations, 'jed/Yaml');
-        $this->assertContent($translations, 'jed/YamlDictionary');
 
         $this->runTestFormat('jed/Po', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('jed/Mo', 10, $countTranslated, $countHeaders);
@@ -154,8 +140,6 @@ class AssetsTest extends AbstractTestCase
         $this->runTestFormat('jed/JsonDictionary', $countTranslations, $countTranslated);
         $this->runTestFormat('jed/Csv', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('jed/CsvDictionary', $countTranslations, $countTranslated);
-        $this->runTestFormat('jed/Yaml', $countTranslations, $countTranslated, $countHeaders);
-        $this->runTestFormat('jed/YamlDictionary', $countTranslations, $countTranslated);
     }
 
     public function testJsCode()
@@ -178,8 +162,6 @@ class AssetsTest extends AbstractTestCase
         $this->assertContent($translations, 'jscode/Csv');
         $this->assertContent($translations, 'jscode/CsvDictionary');
         $this->assertContent($translations, 'jscode/Xliff');
-        $this->assertContent($translations, 'jscode/Yaml');
-        $this->assertContent($translations, 'jscode/YamlDictionary');
 
         $this->runTestFormat('jscode/Po', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('jscode/Mo', 0, $countTranslated, $countHeaders);
@@ -190,8 +172,6 @@ class AssetsTest extends AbstractTestCase
         $this->runTestFormat('jscode/JsonDictionary', $countTranslations, $countTranslated);
         $this->runTestFormat('jscode/Csv', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('jscode/CsvDictionary', $countTranslations, $countTranslated);
-        $this->runTestFormat('jscode/Yaml', $countTranslations, $countTranslated, $countHeaders);
-        $this->runTestFormat('jscode/YamlDictionary', $countTranslations, $countTranslated);
     }
 
     public function testJs2Code()
@@ -213,8 +193,6 @@ class AssetsTest extends AbstractTestCase
         $this->assertContent($translations, 'jscode2/Csv');
         $this->assertContent($translations, 'jscode2/CsvDictionary');
         $this->assertContent($translations, 'jscode2/Xliff');
-        $this->assertContent($translations, 'jscode2/Yaml');
-        $this->assertContent($translations, 'jscode2/YamlDictionary');
 
         $this->runTestFormat('jscode2/Po', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('jscode2/Mo', 0, $countTranslated, $countHeaders);
@@ -225,8 +203,6 @@ class AssetsTest extends AbstractTestCase
         $this->runTestFormat('jscode2/JsonDictionary', $countTranslations, $countTranslated);
         $this->runTestFormat('jscode2/Csv', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('jscode2/CsvDictionary', $countTranslations, $countTranslated);
-        $this->runTestFormat('jscode2/Yaml', $countTranslations, $countTranslated, $countHeaders);
-        $this->runTestFormat('jscode2/YamlDictionary', $countTranslations, $countTranslated);
     }
 
     public function testPhpCode()
@@ -249,8 +225,6 @@ class AssetsTest extends AbstractTestCase
         $this->assertContent($translations, 'phpcode/Csv');
         $this->assertContent($translations, 'phpcode/CsvDictionary');
         $this->assertContent($translations, 'phpcode/Xliff');
-        $this->assertContent($translations, 'phpcode/Yaml');
-        $this->assertContent($translations, 'phpcode/YamlDictionary');
 
         $this->runTestFormat('phpcode/Po', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('phpcode/Mo', 0, $countTranslated, $countHeaders);
@@ -261,8 +235,6 @@ class AssetsTest extends AbstractTestCase
         $this->runTestFormat('phpcode/JsonDictionary', $countTranslations, $countTranslated);
         $this->runTestFormat('phpcode/Csv', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('phpcode/CsvDictionary', $countTranslations, $countTranslated);
-        $this->runTestFormat('phpcode/Yaml', $countTranslations, $countTranslated, $countHeaders);
-        $this->runTestFormat('phpcode/YamlDictionary', $countTranslations, $countTranslated);
     }
 
     public function testPhpCode2()
@@ -289,8 +261,6 @@ class AssetsTest extends AbstractTestCase
         $this->assertContent($translations, 'phpcode2/Csv');
         $this->assertContent($translations, 'phpcode2/CsvDictionary');
         $this->assertContent($translations, 'phpcode2/Xliff');
-        $this->assertContent($translations, 'phpcode2/Yaml');
-        $this->assertContent($translations, 'phpcode2/YamlDictionary');
 
         $this->runTestFormat('phpcode2/Po', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('phpcode2/Mo', 0, $countTranslated, $countHeaders);
@@ -301,8 +271,6 @@ class AssetsTest extends AbstractTestCase
         $this->runTestFormat('phpcode2/JsonDictionary', $countTranslations, $countTranslated);
         $this->runTestFormat('phpcode2/Csv', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('phpcode2/CsvDictionary', $countTranslations, $countTranslated);
-        $this->runTestFormat('phpcode2/Yaml', $countTranslations, $countTranslated, $countHeaders);
-        $this->runTestFormat('phpcode2/YamlDictionary', $countTranslations, $countTranslated);
     }
 
     public function testPhpCode3()
@@ -327,8 +295,6 @@ class AssetsTest extends AbstractTestCase
         $this->assertContent($translations, 'phpcode3/Csv');
         $this->assertContent($translations, 'phpcode3/CsvDictionary');
         $this->assertContent($translations, 'phpcode3/Xliff');
-        $this->assertContent($translations, 'phpcode3/Yaml');
-        $this->assertContent($translations, 'phpcode3/YamlDictionary');
 
         $this->runTestFormat('phpcode3/Po', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('phpcode3/Mo', 0, $countTranslated, $countHeaders);
@@ -339,8 +305,6 @@ class AssetsTest extends AbstractTestCase
         $this->runTestFormat('phpcode3/JsonDictionary', $countTranslations, $countTranslated);
         $this->runTestFormat('phpcode3/Csv', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('phpcode3/CsvDictionary', $countTranslations, $countTranslated);
-        $this->runTestFormat('phpcode3/Yaml', $countTranslations, $countTranslated, $countHeaders);
-        $this->runTestFormat('phpcode3/YamlDictionary', $countTranslations, $countTranslated);
     }
 
     public function testVueJs()
@@ -365,8 +329,6 @@ class AssetsTest extends AbstractTestCase
         $this->assertContent($translations, 'vuejs/Csv');
         $this->assertContent($translations, 'vuejs/CsvDictionary');
         $this->assertContent($translations, 'vuejs/Xliff');
-        $this->assertContent($translations, 'vuejs/Yaml');
-        $this->assertContent($translations, 'vuejs/YamlDictionary');
 
         $this->runTestFormat('vuejs/Po', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('vuejs/Mo', 0, $countTranslated, $countHeaders);
@@ -377,8 +339,6 @@ class AssetsTest extends AbstractTestCase
         $this->runTestFormat('vuejs/JsonDictionary', $countTranslations, $countTranslated);
         $this->runTestFormat('vuejs/Csv', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('vuejs/CsvDictionary', $countTranslations, $countTranslated);
-        $this->runTestFormat('vuejs/Yaml', $countTranslations, $countTranslated, $countHeaders);
-        $this->runTestFormat('vuejs/YamlDictionary', $countTranslations, $countTranslated);
     }
 
     /**
@@ -410,8 +370,6 @@ class AssetsTest extends AbstractTestCase
         $this->assertContent($translations, 'phpcode4/Csv');
         $this->assertContent($translations, 'phpcode4/CsvDictionary');
         $this->assertContent($translations, 'phpcode4/Xliff');
-        $this->assertContent($translations, 'phpcode4/Yaml');
-        $this->assertContent($translations, 'phpcode4/YamlDictionary');
 
         $this->runTestFormat('phpcode4/Po', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('phpcode4/Mo', 0, $countTranslated, $countHeaders);
@@ -422,8 +380,6 @@ class AssetsTest extends AbstractTestCase
         $this->runTestFormat('phpcode4/JsonDictionary', $countTranslations, $countTranslated);
         $this->runTestFormat('phpcode4/Csv', $countTranslations, $countTranslated, $countHeaders);
         $this->runTestFormat('phpcode4/CsvDictionary', $countTranslations, $countTranslated);
-        $this->runTestFormat('phpcode4/Yaml', $countTranslations, $countTranslated, $countHeaders);
-        $this->runTestFormat('phpcode4/YamlDictionary', $countTranslations, $countTranslated);
     }
 
     public function testPhpCode5MultipleDomainScanning()