Stable test order.

This commit is contained in:
Tobias Gruetzmacher 2015-07-16 01:32:24 +02:00
parent ea4472cd7c
commit d88b97573d

View file

@ -153,6 +153,7 @@ def generate_comic_testers():
scraperclass for scraperclass in scraper.get_scraperclasses() scraperclass for scraperclass in scraper.get_scraperclasses()
if scraperclass.getName() in testscrapernames if scraperclass.getName() in testscrapernames
] ]
scraperclasses.sort(key=lambda scraperclass: scraperclass.__name__)
for scraperclass in scraperclasses: for scraperclass in scraperclasses:
name = 'Test'+scraperclass.__name__ name = 'Test'+scraperclass.__name__
g[name] = make_comic_tester(name, scraperclass=scraperclass) g[name] = make_comic_tester(name, scraperclass=scraperclass)