From 7c3a87970bf5f0fad10269176bb9b04b16ed0a7b Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 16 Apr 2016 11:54:29 +0200 Subject: [PATCH] Fix test naming. --- tests/test_comics.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_comics.py b/tests/test_comics.py index ad235c699..7cfc643d3 100644 --- a/tests/test_comics.py +++ b/tests/test_comics.py @@ -5,6 +5,7 @@ import re import os +import operator import multiprocessing try: from urllib.parse import urlsplit @@ -133,7 +134,7 @@ def get_test_scrapers(): # faster testscrapernames = [ 'AbstruseGoose', - 'GoComics/CalvinandHobbes', + 'GoComics/CalvinAndHobbes', 'xkcd' ] scraper_pattern = re.compile('|'.join(testscrapernames)) @@ -147,4 +148,5 @@ def get_test_scrapers(): def pytest_generate_tests(metafunc): if 'scraperobj' in metafunc.fixturenames: - metafunc.parametrize('scraperobj', get_test_scrapers()) + metafunc.parametrize('scraperobj', get_test_scrapers(), + ids=operator.attrgetter('name'))