2
0
mirror of https://github.com/WikiTeam/wikiteam synced 2024-11-12 07:12:41 +00:00

Catch ConnectionError when running tests to prevent build errors

This commit is contained in:
Hydriz Scholz 2016-09-30 13:21:53 +08:00
parent daa39616e2
commit 5d416da913

View File

@ -261,7 +261,11 @@ class TestDumpgenerator(unittest.TestCase):
]
for wiki, engine in tests:
print 'Testing', wiki
guess_engine = getWikiEngine(wiki)
try:
guess_engine = getWikiEngine(wiki)
except ConnectionError:
print "%s failed to load, skipping..." % (wiki)
continue
print 'Got: %s, expected: %s' % (guess_engine, engine)
self.assertEqual(guess_engine, engine)