forked from hhursev/recipe-scrapers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_downshiftology.py
57 lines (45 loc) · 2.66 KB
/
test_downshiftology.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
46
47
48
49
50
51
52
53
54
55
56
57
from recipe_scrapers.downshiftology import Downshiftology
from tests import ScraperTest
class TestDownshiftologyScraper(ScraperTest):
scraper_class = Downshiftology
def test_host(self):
self.assertEqual("downshiftology.com", self.harvester_class.host())
def test_author(self):
self.assertEqual("Lisa Bryan", self.harvester_class.author())
def test_title(self):
self.assertEqual("Greek Chicken Kabobs", self.harvester_class.title())
def test_total_time(self):
self.assertEqual(55, self.harvester_class.total_time())
def test_yields(self):
self.assertEqual("6 servings", self.harvester_class.yields())
def test_image(self):
self.assertEqual(
"https://i2.wp.com/www.downshiftology.com/wp-content/uploads/2020/09/Greek-Chicken-Kabobs-3.jpg",
self.harvester_class.image(),
)
def test_ingredients(self):
self.assertEqual(
[
"1/4 cup olive oil",
"2 tablespoons red wine vinegar",
"3 tablespoons lemon juice",
"1 teaspoon Dijon mustard",
"3 garlic cloves (minced)",
"1 teaspoon dried oregano",
"1/2 teaspoon salt",
"1/4 teaspoon black pepper",
"1 1/2 pounds boneless skinless chicken breasts (about 3 large chicken breasts, cut into 1 1/2-inch pieces.)",
"1 red bell pepper (seeded, cut into 1 1/2-Inch pieces)",
"1 yellow bell pepper (seeded, cut into 1 1/2-inch pieces)",
"1 red onion (cut into 1 1/2-inch chunks)",
"1 zucchini (sliced)",
],
self.harvester_class.ingredients(),
)
def test_instructions(self):
self.assertEqual(
"Make marinade\nTo make the marinade, whisk together the olive oil, red wine vinegar, lemon juice, Dijon mustard, minced garlic, dried oregano, salt, and pepper.\nMarinate chicken\nPlace chicken pieces in a glass dish and pour the marinade over the chicken. Cover and marinate in the fridge for at least one hour.\nThread skewers\nLight a gas or charcoal grill on medium-high heat. Thread the skewers with pieces of red onion, chicken, zucchini, and bell pepper. You can alternate the order.\nGrill kabobs\nPlace the kabobs on the preheated grill, and cook about 5-7 minutes per side. The kabobs are done when the chicken is cooked through and the vegetables are lightly charred, about 15 minutes.\nServe with lemon wedges and tzatziki sauce.",
self.harvester_class.instructions(),
)
def test_ratings(self):
self.assertEqual(5.0, self.harvester_class.ratings())