From 28fc715b28088b050c32265a879982fb435d657e Mon Sep 17 00:00:00 2001 From: PiRSquared17 Date: Mon, 9 Feb 2015 23:59:36 +0000 Subject: [PATCH] Make tests pass (fix/remove URLs) Remove more Gentoo URLs (see 5069119b). Fix WikiPapers API, and remove it from API test. (It gives incorrect API URL in its HTML output.) --- testing/test_dumpgenerator.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/testing/test_dumpgenerator.py b/testing/test_dumpgenerator.py index 332ea0c..454f3ff 100644 --- a/testing/test_dumpgenerator.py +++ b/testing/test_dumpgenerator.py @@ -75,7 +75,7 @@ class TestDumpgenerator(unittest.TestCase): #['http://mc.orain.org/w/index.php', 'http://mc.orain.org/w/api.php', u'Mojang logo.svg'], # Referata wikifarm - ['http://wikipapers.referata.com/index.php', 'http://wikipapers.referata.com/api.php', u'Avbot logo.png'], + ['http://wikipapers.referata.com/w/index.php', 'http://wikipapers.referata.com/w/api.php', u'Avbot logo.png'], # ShoutWiki wikifarm ['http://commandos.shoutwiki.com/w/index.php', 'http://commandos.shoutwiki.com/w/api.php', u'Night of the Wolves loading.png'], @@ -138,9 +138,6 @@ class TestDumpgenerator(unittest.TestCase): # Test old allpages API behaviour ['http://wiki.damirsystems.com/index.php', 'http://wiki.damirsystems.com/api.php', 'SQL Server Tips'], - - # Gentoo wikifarm - ['http://wiki.gentoo.org/index.php', 'http://wiki.gentoo.org/api.php', u'/usr move'], ] session = requests.Session() @@ -242,9 +239,6 @@ class TestDumpgenerator(unittest.TestCase): # Gamepedia wikifarm ['http://dawngate.gamepedia.com', 'http://dawngate.gamepedia.com/api.php', 'http://dawngate.gamepedia.com/index.php'], - # Gentoo wikifarm - ['http://wiki.gentoo.org', 'http://wiki.gentoo.org/api.php', 'http://wiki.gentoo.org/index.php'], - # Neoseeker wikifarm #['http://digimon.neoseeker.com', 'http://digimon.neoseeker.com/w/api.php', 'http://digimon.neoseeker.com/w/index.php'], @@ -252,7 +246,7 @@ class TestDumpgenerator(unittest.TestCase): #['http://mc.orain.org', 'http://mc.orain.org/w/api.php', 'http://mc.orain.org/w/index.php'], # Referata wikifarm - ['http://wikipapers.referata.com', 'http://wikipapers.referata.com/api.php', 'http://wikipapers.referata.com/index.php'], + # ['http://wikipapers.referata.com', 'http://wikipapers.referata.com/w/api.php', 'http://wikipapers.referata.com/w/index.php'], # ShoutWiki wikifarm ['http://commandos.shoutwiki.com', 'http://commandos.shoutwiki.com/w/api.php', 'http://commandos.shoutwiki.com/w/index.php'],