forked from hhursev/recipe-scrapers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_scraper.py
45 lines (29 loc) · 1.27 KB
/
test_scraper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# mypy: allow-untyped-defs
from recipe_scrapers.template import Template
from tests import ScraperTest
class TestTemplateScraper(ScraperTest):
scraper_class = Template
def test_host(self):
self.assertEqual("example.com", self.harvester_class.host())
def test_author(self):
self.assertEqual(None, self.harvester_class.author())
def test_title(self):
self.assertEqual(None, self.harvester_class.title())
def test_category(self):
self.assertEqual(None, self.harvester_class.category())
def test_total_time(self):
self.assertEqual(None, self.harvester_class.total_time())
def test_yields(self):
self.assertEqual(None, self.harvester_class.yields())
def test_image(self):
self.assertEqual(None, self.harvester_class.image())
def test_ingredients(self):
self.assertEqual(None, self.harvester_class.ingredients())
def test_instructions(self):
self.assertEqual(None, self.harvester_class.instructions())
def test_ratings(self):
self.assertEqual(None, self.harvester_class.ratings())
def test_cuisine(self):
self.assertEqual(None, self.harvester_class.cuisine())
def test_description(self):
self.assertEqual(None, self.harvester_class.description())