Improve test output.
This commit is contained in:
parent
bb5d867260
commit
256a08bf31
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ class _ComicTester(TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.name = self.scraperclass.get_name()
|
self.name = self.scraperclass.get_name()
|
||||||
|
self.url = self.scraperclass.starter()
|
||||||
|
|
||||||
def test_comic(self):
|
def test_comic(self):
|
||||||
# Test a scraper. It must be able to traverse backward for
|
# Test a scraper. It must be able to traverse backward for
|
||||||
|
@ -43,7 +44,7 @@ class _ComicTester(TestCase):
|
||||||
shutil.rmtree(tmpdir)
|
shutil.rmtree(tmpdir)
|
||||||
|
|
||||||
def check(self, condition, msg):
|
def check(self, condition, msg):
|
||||||
self.assertTrue(condition, "%s: %s" % (self.name, msg))
|
self.assertTrue(condition, "%s %s %s" % (self.name, self.url, msg))
|
||||||
|
|
||||||
|
|
||||||
def generate_comic_testers():
|
def generate_comic_testers():
|
||||||
|
|
Loading…
Reference in a new issue