Test for URL in every scraper.
This commit is contained in:
parent
cafa37fcb1
commit
1d2dcd5a77
1 changed files with 4 additions and 2 deletions
|
@ -9,8 +9,10 @@ class ScraperTester(TestCase):
|
||||||
|
|
||||||
def test_get_scraperclasses(self):
|
def test_get_scraperclasses(self):
|
||||||
for scraperclass in scraper.get_scraperclasses():
|
for scraperclass in scraper.get_scraperclasses():
|
||||||
scraperclass()
|
scraperobj = scraperclass()
|
||||||
scraperclass(indexes=["bla"])
|
scraperobj = scraperclass(indexes=["bla"])
|
||||||
|
self.assertTrue(scraperobj.url,
|
||||||
|
"missing url in %s" % scraperobj.getName())
|
||||||
|
|
||||||
def test_find_scraperclasses_single(self):
|
def test_find_scraperclasses_single(self):
|
||||||
result = scraper.find_scraperclasses("CalvinAndHobbes")
|
result = scraper.find_scraperclasses("CalvinAndHobbes")
|
||||||
|
|
Loading…
Reference in a new issue