Merge pull request #185 from PiRSquared17/fix-tests

Relax delay() test by 10 ms, add test for allpages
pull/187/head
Emilio J. Rodríguez-Posada 10 years ago
commit 43a105335b

@ -47,7 +47,7 @@ class TestDumpgenerator(unittest.TestCase):
delay(config=config)
t2 = time.time() - t1
print 'Elapsed time in seconds (approx.):', t2
self.assertTrue(t2 > i and t2 < i + 1)
self.assertTrue(t2 + 0.01 > i and t2 < i + 1)
def test_getImages(self):
# This test download the image list using API and index.php
@ -138,7 +138,10 @@ class TestDumpgenerator(unittest.TestCase):
# Alone wikis
['http://archiveteam.org/index.php', 'http://archiveteam.org/api.php', u'April Fools\' Day'],
['http://skilledtests.com/wiki/index.php', 'http://skilledtests.com/wiki/api.php', u'Conway\'s Game of Life'],
# 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'],
]

Loading…
Cancel
Save