Fix tests with newer pytest versions.

This commit is contained in:
Bastian Kleineidam 2013-06-28 21:25:55 +02:00
parent fb9d8276a6
commit 27c90f07a5

View file

@ -34,6 +34,7 @@ class _ComicTester(TestCase):
scraperclass=None
def setUp(self):
if self.scraperclass is not None:
self.name = self.scraperclass.getName()
self.url = self.scraperclass.starter()
# create a temporary directory for images
@ -48,6 +49,10 @@ class _ComicTester(TestCase):
return os.listdir(os.path.join(self.tmpdir, *dirs))
def test_comic(self):
if self.scraperclass is None:
# only run subclasses
import pytest
pytest.skip("base class")
# Test a scraper. It must be able to traverse backward for
# at least 5 strips from the start, and find strip images
# on at least 4 pages.