Description: Disable network access in tests.
Author: Andrius Merkys <merkys@debian.org>
Forwarded: not-needed
--- a/test/lib/utils.js
+++ b/test/lib/utils.js
@@ -37,7 +37,7 @@
 
   shellExec,
 
-  wdTest: async cmd => shellExec(`export WB_INSTANCE=https://test.wikidata.org ; ./bin/wb ${cmd}`),
+  wdTest: async cmd => shellExec(`export WB_INSTANCE=https://127.0.0.1/wikidata ; ./bin/wb ${cmd}`),
 
   wbDry: async cmd => shellExec(`./bin/wb ${cmd} --dry`),
 
--- a/test/general.js
+++ b/test/general.js
@@ -6,10 +6,10 @@
 
   // This test may fail if your local network messes with the request
   // Known case: public hotspot
-  it('should allow to customize the instance', async () => {
+  /* it('should allow to customize the instance', async () => {
     const { stdout } = await shellExec('./bin/wb label Item:Q11 --instance https://wikibase-registry.wmflabs.org/w/api.php')
     stdout.should.equal('TransforMap Base')
-  })
+  }) */
 
   // Addressed by https://github.com/maxlath/commander.js/commit/1297ae6
   it('should accept options before arguments', async () => {
--- a/test/wb-props.js
+++ b/test/wb-props.js
@@ -22,9 +22,9 @@
     data.P6.type.should.equal('WikibaseItem')
   })
 
-  it('should be able to query a custom SPARQL endpoint', async () => {
+  /* it('should be able to query a custom SPARQL endpoint', async () => {
     const { stdout } = await shellExec('./bin/wb props --sparql-endpoint https://wikibase-registry-query.wmflabs.org/proxy/wdqs/bigdata/namespace/wdq/sparql -l en')
     const data = JSON.parse(stdout)
     data.P2.toLowerCase().should.equal('main page')
-  })
+  }) */
 })
