File: disable-remaining-network-tests.patch

package info (click to toggle)
node-wikibase-cli 15.15.4-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,940 kB
  • sloc: javascript: 4,531; sh: 26; makefile: 7
file content (467 lines) | stat: -rw-r--r-- 18,433 bytes parent folder | download | duplicates (2)
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
Description: Disable remaining network tests
Author: Santiago Vila <sanvila@debian.org>
Bug-Debian: https://bugs.debian.org/1017811
Last-Update: 2025-10-26

--- a/test/general.js
+++ b/test/general.js
@@ -12,7 +12,7 @@
   }) */
 
   // Addressed by https://github.com/maxlath/commander.js/commit/1297ae6
-  it('should accept options before arguments', async () => {
+  it.skip('should accept options before arguments', async () => {
     const { stdout } = await shellExec('./bin/wd claims -c Q12569 P2586')
     stdout.should.equal('42')
   })
--- a/test/wb-aliases.js
+++ b/test/wb-aliases.js
@@ -7,12 +7,12 @@
     stdout.should.containEql('Usage:')
   })
 
-  it('<entity>', async () => {
+  it.skip('<entity>', async () => {
     const { stdout } = await shellExec('./bin/wd aliases Q123')
     stdout.should.match(/sept/i)
   })
 
-  it('<entity> should be tolerant on input', async () => {
+  it.skip('<entity> should be tolerant on input', async () => {
     const { stdout } = await shellExec('./bin/wd aliases azfzafzafazQ123fazafazfz')
     stdout.should.match(/sept/i)
   })
--- a/test/wb-claims.js
+++ b/test/wb-claims.js
@@ -9,23 +9,23 @@
     stdout.should.containEql('Usage:')
   })
 
-  it('should display all entity claims when passed an entity id', async () => {
+  it.skip('should display all entity claims when passed an entity id', async () => {
     const { stdout } = await shellExec('./bin/wd claims Q3521413')
     stdout.should.containEql('film (Q11424)')
   })
 
-  it('shoud display property claims when passed and entity id and a property id', async () => {
+  it.skip('shoud display property claims when passed and entity id and a property id', async () => {
     const { stdout } = await shellExec('./bin/wd claims Q3521413 P31')
     stdout.should.equal('Q11424')
   })
 
-  it('should filters properties from text', async () => {
+  it.skip('should filters properties from text', async () => {
     const coords = '-85.2667,-175.617'
     const { stdout } = await shellExec('./bin/wd claims Q6484979 coord')
     stdout.should.containEql(coords)
   })
 
-  it('should find the GUID of a claim when provided a value', async () => {
+  it.skip('should find the GUID of a claim when provided a value', async () => {
     const { stdout } = await shellExec('./bin/wd claims Q2924461 P17 Q30')
     stdout.should.equal('Q2924461$86A518DA-945F-41B8-871C-8C4FC148AEFA')
   })
--- a/test/wb-convert.js
+++ b/test/wb-convert.js
@@ -4,7 +4,7 @@
 describe('wb convert', function () {
   this.timeout(20000)
 
-  it('should convert external ids', async () => {
+  it.skip('should convert external ids', async () => {
     const { stdout } = await shellExec('./bin/wd convert -p P268 -o 11865344k 11932251d')
     const results = JSON.parse(stdout)
     results.should.be.an.Object()
@@ -12,7 +12,7 @@
     results['11932251d'][0].should.equal('Q140')
   })
 
-  it('should convert external ids passed on stdin', async () => {
+  it.skip('should convert external ids passed on stdin', async () => {
     const { stdout } = await shellExec('echo "11865344k 11932251d" | ./bin/wd convert -p P268 -o')
     const results = JSON.parse(stdout)
     results.should.be.an.Object()
@@ -20,7 +20,7 @@
     results['11932251d'][0].should.equal('Q140')
   })
 
-  it('should convert Wikidata ids', async () => {
+  it.skip('should convert Wikidata ids', async () => {
     const { stdout } = await shellExec('./bin/wd convert -p P268 -s Q45 Q140')
     const results = JSON.parse(stdout)
     results.should.be.an.Object()
@@ -29,7 +29,7 @@
     results.Q140[0].should.equal('11932251d')
   })
 
-  it('should convert external ids that look like Wikidata ids', async () => {
+  it.skip('should convert external ids that look like Wikidata ids', async () => {
     const { stdout } = await shellExec('./bin/wd convert -p P352 -o Q13131')
     const results = JSON.parse(stdout)
     results.Q13131[0].should.equal('Q21115170')
--- a/test/wb-data.js
+++ b/test/wb-data.js
@@ -16,7 +16,7 @@
   //   stdout.should.containEql('Usage:')
   // })
 
-  it('<entity>', async () => {
+  it.skip('<entity>', async () => {
     const { stdout } = await shellExec('./bin/wd data Q123456')
     stdout.startsWith('{').should.be.true()
     const data = JSON.parse(stdout)
@@ -25,7 +25,7 @@
     dataAttrs.forEach(attr => should(attributes.indexOf(attr) > -1).be.true())
   })
 
-  it('should accept several ids', async () => {
+  it.skip('should accept several ids', async () => {
     const { stdout } = await shellExec('./bin/wd data Q123456 Q123')
     const lines = stdout.split('\n')
     lines.length.should.equal(2)
@@ -36,12 +36,12 @@
     })
   })
 
-  it('should output entities as ndjson', async () => {
+  it.skip('should output entities as ndjson', async () => {
     const { stdout } = await shellExec('./bin/wd data Q123456 Q1512522')
     stdout.split('\n').length.should.equal(2)
   })
 
-  it('should simplify entity when requested', async () => {
+  it.skip('should simplify entity when requested', async () => {
     const { stdout } = await shellExec('./bin/wd data Q1512522 --simplify')
     const entity = JSON.parse(stdout)
     entity.labels.de.should.be.a.String()
@@ -50,7 +50,7 @@
     entity.claims.P31[0].should.be.a.String()
   })
 
-  it('should simplify entities when requested', async () => {
+  it.skip('should simplify entities when requested', async () => {
     const { stdout } = await shellExec('./bin/wd data Q1512522 Q123456 --simplify')
     const entity = JSON.parse(stdout.split('\n')[0])
     entity.labels.de.should.be.a.String()
@@ -59,7 +59,7 @@
     entity.claims.P31[0].should.be.a.String()
   })
 
-  it('should return only the desired props when requested', async () => {
+  it.skip('should return only the desired props when requested', async () => {
     const { stdout } = await shellExec('./bin/wd data Q1512522 --props labels,aliases')
     const entity = JSON.parse(stdout)
     should(entity.labels).be.an.Object()
@@ -79,7 +79,7 @@
     should(entity.forms).be.an.Object()
   })
 
-  it('should accept ids on stdin', async () => {
+  it.skip('should accept ids on stdin', async () => {
     const { stdout } = await shellExec('echo "Q123456 Q123" | ./bin/wd data --props labels --simplify')
     const lines = stdout.split('\n')
     lines.length.should.equal(2)
@@ -98,13 +98,13 @@
     })
   })
 
-  it('should return ttl when requested', async () => {
+  it.skip('should return ttl when requested', async () => {
     const { stdout } = await shellExec('./bin/wd data Q1512522 --format ttl')
     stdout.should.startWith('@prefix rdf:')
   })
 
   describe('property claims data', () => {
-    it('should get property claims data provided a property claims id', async () => {
+    it.skip('should get property claims data provided a property claims id', async () => {
       const propertyClaimsId = 'Q2#P31'
       const { stdout } = await shellExec(`./bin/wd data '${propertyClaimsId}'`)
       const propertyClaims = JSON.parse(stdout)
@@ -116,27 +116,27 @@
     })
   })
 
-  it('should fetch a specific revision', async () => {
+  it.skip('should fetch a specific revision', async () => {
     const revisionId = 1257590478
     const { stdout } = await shellExec(`./bin/wd data Q1345582 --revision ${revisionId}`)
     const entity = JSON.parse(stdout)
     entity.lastrevid.should.equal(revisionId)
   })
 
-  it('should simplify a specific revision', async () => {
+  it.skip('should simplify a specific revision', async () => {
     const revisionId = 1257590478
     const { stdout } = await shellExec(`./bin/wd data Q1345582 --revision ${revisionId} --simplify`)
     const entity = JSON.parse(stdout)
     entity.labels.fr.should.equal('Gilbert Simondon')
   })
 
-  it('should return entities schema text', async () => {
+  it.skip('should return entities schema text', async () => {
     const { stdout } = await shellExec('./bin/wd data E233')
     stdout.should.containEql('PREFIX wd:')
   })
 
   describe('claim data', () => {
-    it('should get a claim data provided a claim guid', async () => {
+    it.skip('should get a claim data provided a claim guid', async () => {
       const guid = 'Q2$50fad68d-4f91-f878-6f29-e655af54690e'
       const { stdout } = await shellExec(`./bin/wd data '${guid}'`)
       const claim = JSON.parse(stdout)
@@ -145,7 +145,7 @@
       claim.mainsnak.datavalue.value.id.should.equal('Q128207')
     })
 
-    it('should accept prefixed claim GUIDs', async () => {
+    it.skip('should accept prefixed claim GUIDs', async () => {
       const prefixedGuid = 'wds:Q2-50fad68d-4f91-f878-6f29-e655af54690e'
       const { stdout } = await shellExec(`./bin/wd data '${prefixedGuid}'`)
       const claim = JSON.parse(stdout)
@@ -154,7 +154,7 @@
       claim.mainsnak.datavalue.value.id.should.equal('Q128207')
     })
 
-    it('should accept claim GUIDs with an - in place of a $', async () => {
+    it.skip('should accept claim GUIDs with an - in place of a $', async () => {
       const hyphenedGuid = 'Q2-50fad68d-4f91-f878-6f29-e655af54690e'
       const { stdout } = await shellExec(`./bin/wd data '${hyphenedGuid}'`)
       const claim = JSON.parse(stdout)
@@ -163,12 +163,12 @@
       claim.mainsnak.datavalue.value.id.should.equal('Q128207')
     })
 
-    it('should get a simplified claim', async () => {
+    it.skip('should get a simplified claim', async () => {
       const { stdout } = await shellExec('./bin/wd data --simplify \'Q2$50fad68d-4f91-f878-6f29-e655af54690e\'')
       stdout.should.equal('Q128207')
     })
 
-    it('should keep the requested simplified claim data', async () => {
+    it.skip('should keep the requested simplified claim data', async () => {
       const guid = 'Q2$50fad68d-4f91-f878-6f29-e655af54690e'
       const { stdout } = await shellExec(`./bin/wd data --simplify --keep ids,references,qualifiers '${guid}'`)
       const claim = JSON.parse(stdout)
@@ -178,7 +178,7 @@
       claim.qualifiers.should.be.an.Object()
     })
 
-    it('should use specified time-converter', async () => {
+    it.skip('should use specified time-converter', async () => {
       const { stdout } = await shellExec('./bin/wd data --simplify --time-converter simple-day Q52#P571')
       stdout.should.equal('2001-01-15')
     })
--- a/test/wb-description.js
+++ b/test/wb-description.js
@@ -9,12 +9,12 @@
     stdout.should.containEql('Usage:')
   })
 
-  it('<entity>', async () => {
+  it.skip('<entity>', async () => {
     const { stdout } = await shellExec('./bin/wd description Q123456 -l en')
     stdout.should.equal('Wikimedia disambiguation page')
   })
 
-  it('<entity> should be tolerant on input', async () => {
+  it.skip('<entity> should be tolerant on input', async () => {
     const { stdout } = await shellExec('./bin/wd description  -l en azfzafzafazQ123456fazafazfz')
     stdout.should.equal('Wikimedia disambiguation page')
   })
--- a/test/wb-generate-template.js
+++ b/test/wb-generate-template.js
@@ -4,7 +4,7 @@
 describe('wb generate-template', function () {
   this.timeout(20000)
 
-  it('should generate a template from an item id', async () => {
+  it.skip('should generate a template from an item id', async () => {
     const { stdout } = await shellExec('./bin/wd gt Q123456 --props labels.de --format json')
     JSON.parse(stdout)
     .should.deepEqual({
--- a/test/wb-id.js
+++ b/test/wb-id.js
@@ -9,17 +9,17 @@
     stdout.should.containEql('Usage:')
   })
 
-  it('should accept a Wikipedia article title', async () => {
+  it.skip('should accept a Wikipedia article title', async () => {
     const { stdout } = await shellExec('./bin/wd id Cantabria -l en')
     stdout.should.equal('Q3946')
   })
 
-  it('should accept a sitelink URL', async () => {
+  it.skip('should accept a sitelink URL', async () => {
     const { stdout } = await shellExec('./bin/wd id https://fr.wikipedia.org/wiki/The_Ister')
     stdout.should.equal('Q3521413')
   })
 
-  it('should accept a dbpedia URL', async () => {
+  it.skip('should accept a dbpedia URL', async () => {
     const { stdout } = await shellExec('./bin/wd id http://fr.dbpedia.org/resource/Eva_Bester')
     stdout.should.equal('Q42886668')
   })
--- a/test/wb-label.js
+++ b/test/wb-label.js
@@ -10,12 +10,12 @@
     stdout.should.containEql('Usage:')
   })
 
-  it("should find an entity's label", async () => {
+  it.skip("should find an entity's label", async () => {
     const { stdout } = await shellExec('./bin/wd label Q123456')
     stdout.should.equal('Friedrichshafen')
   })
 
-  it('should not fallback on another language if a language is explicitly specificed', done => {
+  it.skip('should not fallback on another language if a language is explicitly specificed', done => {
     shellExec('./bin/wd label --lang uk Q15726039')
     .then(undesiredRes(done))
     .catch(({ stderr }) => {
@@ -25,7 +25,7 @@
     .catch(done)
   })
 
-  it('should be tolerant on input', async () => {
+  it.skip('should be tolerant on input', async () => {
     const { stdout } = await shellExec('./bin/wd label azfzafzafazQ123456fazafazfz')
     stdout.should.equal('Friedrichshafen')
   })
--- a/test/wb-lemma.js
+++ b/test/wb-lemma.js
@@ -9,7 +9,7 @@
     stdout.should.containEql('Usage:')
   })
 
-  it("should find an entity's lemma", async () => {
+  it.skip("should find an entity's lemma", async () => {
     const { stdout } = await shellExec('./bin/wd lemma L525')
     stdout.should.equal('maison')
   })
--- a/test/wb-query.js
+++ b/test/wb-query.js
@@ -10,30 +10,30 @@
     stdout.should.containEql('Usage:')
   })
 
-  it('-p [prop] -o [obj] -t [limit]', async () => {
+  it.skip('-p [prop] -o [obj] -t [limit]', async () => {
     const { stdout } = await shellExec('./bin/wd query -p P50 -o Q1345582')
     stdout.split(/\s/).includes('Q18120925').should.be.true()
   })
 
-  it('should work for URL values', async () => {
+  it.skip('should work for URL values', async () => {
     const { stdout } = await shellExec("./bin/wd query -p P973 -o '<https://www.fileformat.info/format/gif/egff.htm>'")
     stdout.split(/\s/).includes('Q2192').should.be.true()
   })
 
   describe('format', () => {
-    it('should default to table format', async () => {
+    it.skip('should default to table format', async () => {
       const { stdout } = await shellExec('./bin/wd q -p P921 -o Q2005 -n 2')
       stdout.split('\n').length.should.equal(2)
       stdout.split('\n').forEach(id => isItemId(id).should.be.true())
     })
 
-    it('should support inline format', async () => {
+    it.skip('should support inline format', async () => {
       const { stdout } = await shellExec('./bin/wd q -p P921 -o Q2005 -n 2 --format inline')
       stdout.split(' ').length.should.equal(2)
       stdout.split(' ').forEach(id => isItemId(id).should.be.true())
     })
 
-    it('should support json format', async () => {
+    it.skip('should support json format', async () => {
       const { stdout } = await shellExec('./bin/wd q -p P921 -o Q2005 -n 2 --format json')
       const data = JSON.parse(stdout)
       data.should.be.an.Array()
@@ -41,7 +41,7 @@
       data.forEach(id => isItemId(id).should.be.true())
     })
 
-    it('should support csv format', async () => {
+    it.skip('should support csv format', async () => {
       const { stdout } = await shellExec('./bin/wd q -p P921 -n 2 --format csv', { trim: false })
       const lines = stdout.split('\n')
       lines[0].trim().should.equal('subject,object')
@@ -50,7 +50,7 @@
       lines.slice(-1)[0].should.equal('')
     })
 
-    it('should support tsv format', async () => {
+    it.skip('should support tsv format', async () => {
       const { stdout } = await shellExec('./bin/wd q -p P921 -n 2 --format tsv')
       const lines = stdout.split('\n')
       // eslint-disable-next-line no-tabs
--- a/test/wb-search.js
+++ b/test/wb-search.js
@@ -9,42 +9,42 @@
     stdout.should.containEql('Usage:')
   })
 
-  it('should find an item', async () => {
+  it.skip('should find an item', async () => {
     const { stdout } = await shellExec('./bin/wd search september --lang en --limit 1')
     stdout.should.startWith('Q123')
   })
 
-  it('should find an item in verbose mode', async () => {
+  it.skip('should find an item in verbose mode', async () => {
     const { stdout } = await shellExec('./bin/wd search september --lang en --verbose --limit 1')
     stdout.should.startWith('id Q123')
   })
 
-  it('should find a property', async () => {
+  it.skip('should find a property', async () => {
     const { stdout } = await shellExec('./bin/wd search "electron configuration" --type property')
     stdout.should.startWith('P8000')
   })
 
-  it('should find a property, short version', async () => {
+  it.skip('should find a property, short version', async () => {
     const { stdout } = await shellExec('./bin/wd search "electron configuration" -t p')
     stdout.should.startWith('P8000')
   })
 
-  it('should find a lexeme', async () => {
+  it.skip('should find a lexeme', async () => {
     const { stdout } = await shellExec('./bin/wd search "maison" --type lexeme')
     stdout.should.startWith('L525')
   })
 
-  it('should find a lexeme, short version', async () => {
+  it.skip('should find a lexeme, short version', async () => {
     const { stdout } = await shellExec('./bin/wd search "maison" -t l')
     stdout.should.startWith('L525')
   })
 
-  it('should find a form', async () => {
+  it.skip('should find a form', async () => {
     const { stdout } = await shellExec('./bin/wd search "maison" --type form')
     stdout.should.startWith('L525-F1')
   })
 
-  it('should find a form, short version', async () => {
+  it.skip('should find a form, short version', async () => {
     const { stdout } = await shellExec('./bin/wd search "maison" -t f')
     stdout.should.startWith('L525-F1')
   })
--- a/test/wb-summary.js
+++ b/test/wb-summary.js
@@ -12,12 +12,12 @@
     stdout.should.containEql('Usage:')
   })
 
-  it('<entity>', async () => {
+  it.skip('<entity>', async () => {
     const { stdout } = await shellExec('./bin/wd summary Q123456 -l en')
     stdout.should.equal(Q123456EnglishSummary)
   })
 
-  it('<entity> should be tolerant on input', async () => {
+  it.skip('<entity> should be tolerant on input', async () => {
     const { stdout } = await shellExec('./bin/wd summary -l en azfzafzafazQ123456fazafazfz')
     stdout.should.equal(Q123456EnglishSummary)
   })