Merge branch 'master' of github.com:WikiTeam/wikiteam

pull/217/head
Benjamin Mako Hill 9 years ago
commit d2adf5ce7c

@ -926,6 +926,9 @@ def getImageNamesAPI(config={}, session=None):
filename = re.sub('_', ' ', tmp_filename)
uploader = re.sub('_', ' ', props['imageinfo'][0]['user'])
images.append([filename, url, uploader])
else:
# if the API doesn't return query data, then we're done
break
if (len(images) == 1):
print ' Found 1 image'

@ -68,9 +68,6 @@ class TestDumpgenerator(unittest.TestCase):
# Gamepedia wikifarm
['http://dawngate.gamepedia.com/index.php', 'http://dawngate.gamepedia.com/api.php', u'Spell Vanquish.png'],
# Gentoo wikifarm
['http://wiki.gentoo.org/index.php', 'http://wiki.gentoo.org/api.php', u'Openclonk screenshot1.png'],
# Neoseeker wikifarm
['http://digimon.neoseeker.com/w/index.php', 'http://digimon.neoseeker.com/w/api.php', u'Ogremon card.png'],
@ -78,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'],
@ -141,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()
@ -245,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'],
@ -255,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'],

@ -12,3 +12,10 @@ commands = nosetests --nocapture --nologcapture
deps =
nose
-rrequirements.txt
[testenv:flake8]
commands = flake8 {posargs}
deps = flake8
[flake8]
exclude = .tox,.venv,build,dist,doc

Loading…
Cancel
Save