Fix tests with newer pytest versions.
This commit is contained in:
parent
fb9d8276a6
commit
27c90f07a5
1 changed files with 9 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue