From 00fb51341a98dee251b9d6a82fafa2fbf4321d3b Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Tue, 26 Apr 2016 08:03:34 +0200 Subject: [PATCH] "Better" selection of default test comics. --- tests/conftest.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index f254045c5..0d7f1a6fa 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam -# Copyright (C) 2014-2016 Tobias Gruetzmacher +# Copyright (C) 2015-2016 Tobias Gruetzmacher + +from __future__ import absolute_import, division, print_function import re import operator @@ -22,11 +24,15 @@ def get_test_scrapers(): # Get limited number of scraper tests on Travis builds to make it # faster testscrapernames = [ + # "classic" _BasicScraper 'AbstruseGoose', + # complex _ParserScraper 'GoComics/CalvinAndHobbes', - 'xkcd' + # _WordPressScraper + 'GrrlPower' ] - scraper_pattern = re.compile('|'.join(testscrapernames)) + scraper_pattern = re.compile('^(' + '|'.join(testscrapernames) + + ')$') scrapers = [ scraperobj for scraperobj in scraper.get_scrapers()