adding more wikis to test

pull/163/head^2
Emilio J. Rodríguez-Posada 10 years ago
parent dd7df0cc01
commit c168097205

@ -59,6 +59,7 @@ class TestDumpgenerator(unittest.TestCase):
# Alone wikis # Alone wikis
#['http://wiki.annotation.jp/index.php', 'http://wiki.annotation.jp/api.php', u'かずさアノテーション - ソーシャル・ゲノム・アノテーション.jpg'], #['http://wiki.annotation.jp/index.php', 'http://wiki.annotation.jp/api.php', u'かずさアノテーション - ソーシャル・ゲノム・アノテーション.jpg'],
['http://archiveteam.org/index.php', 'http://archiveteam.org/api.php', u'Archive-is 2013-07-02 17-05-40.png'], ['http://archiveteam.org/index.php', 'http://archiveteam.org/api.php', u'Archive-is 2013-07-02 17-05-40.png'],
['http://skilledtests.com/wiki/index.php5', 'http://skilledtests.com/wiki/api.php', u'Benham\'s disc (animated).gif'],
# Editthis wikifarm # Editthis wikifarm
# It has a page view limit # It has a page view limit
@ -132,10 +133,14 @@ class TestDumpgenerator(unittest.TestCase):
""" Check the presence of some special titles, like odd chars """ """ Check the presence of some special titles, like odd chars """
""" The tested wikis are from different wikifarms and some alone """ """ The tested wikis are from different wikifarms and some alone """
print '#'*73, '\n', 'test_getImages', '\n', '#'*73 print '#'*73, '\n', 'test_getPageTitles', '\n', '#'*73
tests = [ tests = [
# Alone wikis # Alone wikis
['http://archiveteam.org/index.php', 'http://archiveteam.org/api.php', u'April Fools\' Day'], ['http://archiveteam.org/index.php', 'http://archiveteam.org/api.php', u'April Fools\' Day'],
['http://skilledtests.com/wiki/index.php5', 'http://skilledtests.com/wiki/api.php', u'Conway\'s Game of Life'],
# Gentoo wikifarm
['http://wiki.gentoo.org/index.php', 'http://wiki.gentoo.org/api.php', u'/usr move'],
] ]
session = requests.Session() session = requests.Session()
@ -167,6 +172,7 @@ class TestDumpgenerator(unittest.TestCase):
tests = [ tests = [
['https://www.dokuwiki.org', 'DokuWiki'], ['https://www.dokuwiki.org', 'DokuWiki'],
#['http://wiki.openwrt.org', 'DokuWiki'], #['http://wiki.openwrt.org', 'DokuWiki'],
['http://skilledtests.com/wiki/', 'MediaWiki'],
['http://moinmo.in', 'MoinMoin'], ['http://moinmo.in', 'MoinMoin'],
['https://wiki.debian.org', 'MoinMoin'], ['https://wiki.debian.org', 'MoinMoin'],
] ]

Loading…
Cancel
Save