Exemple #1
0
 def test_find_scraperclasses_single(self):
     result = scraper.find_scraperclasses("CalvinAndHobbes")
     self.assertEqual(len(result), 1)
Exemple #2
0
 def test_find_scraperclasses_multi(self):
     result = scraper.find_scraperclasses("a", multiple_allowed=True)
     self.assertTrue(len(result) > 1)
Exemple #3
0
 def test_find_scraperclasses_error(self):
     with pytest.raises(ValueError):
         scraper.find_scraperclasses("")
Exemple #4
0
 def test_find_scraperclasses_single(self):
     result = scraper.find_scraperclasses("xkcd")
     assert len(result) == 1
Exemple #5
0
 def test_find_scraperclasses_multi(self):
     result = scraper.find_scraperclasses("a", multiple_allowed=True)
     self.assertTrue(len(result) > 1)
Exemple #6
0
 def test_find_scraperclasses_single(self):
     result = scraper.find_scraperclasses("CalvinAndHobbes")
     self.assertEqual(len(result), 1)
Exemple #7
0
 def test_find_scraperclasses_single(self):
     result = scraper.find_scraperclasses("xkcd")
     self.assertEqual(len(result), 1)