コード例 #1
0
 def test_find_scrapers_error(self):
     with pytest.raises(ValueError):
         scraper.find_scrapers("")
コード例 #2
0
 def test_find_scrapers_single(self):
     result = scraper.find_scrapers("xkcd")
     assert len(result) == 1
コード例 #3
0
 def test_find_scrapers_multi(self):
     result = scraper.find_scrapers("a", multiple_allowed=True)
     assert len(result) > 1
コード例 #4
0
 def test_find_scrapers_error(self):
     with pytest.raises(ValueError, match='empty comic name'):
         scraper.find_scrapers('')