"Better" selection of default test comics.
This commit is contained in:
parent
035d6e94e4
commit
00fb51341a
1 changed files with 9 additions and 3 deletions
|
@ -1,7 +1,9 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
||||||
# Copyright (C) 2012-2014 Bastian Kleineidam
|
# 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 re
|
||||||
import operator
|
import operator
|
||||||
|
@ -22,11 +24,15 @@ def get_test_scrapers():
|
||||||
# Get limited number of scraper tests on Travis builds to make it
|
# Get limited number of scraper tests on Travis builds to make it
|
||||||
# faster
|
# faster
|
||||||
testscrapernames = [
|
testscrapernames = [
|
||||||
|
# "classic" _BasicScraper
|
||||||
'AbstruseGoose',
|
'AbstruseGoose',
|
||||||
|
# complex _ParserScraper
|
||||||
'GoComics/CalvinAndHobbes',
|
'GoComics/CalvinAndHobbes',
|
||||||
'xkcd'
|
# _WordPressScraper
|
||||||
|
'GrrlPower'
|
||||||
]
|
]
|
||||||
scraper_pattern = re.compile('|'.join(testscrapernames))
|
scraper_pattern = re.compile('^(' + '|'.join(testscrapernames) +
|
||||||
|
')$')
|
||||||
|
|
||||||
scrapers = [
|
scrapers = [
|
||||||
scraperobj for scraperobj in scraper.get_scrapers()
|
scraperobj for scraperobj in scraper.get_scrapers()
|
||||||
|
|
Loading…
Reference in a new issue