<commit_before>from recipe_scrapers.madensverden import MadensVerden
from tests import ScraperTest


class TestMadensVerdenScraper(ScraperTest):

    scraper_class = MadensVerden

    def test_host(self):
        self.assertEqual("madensverden.dk", self.harvester_class.host())

    def test_title(self):
        self.assertEqual(
            "Rabarbertrifli - nem trifli med rabarber og makron",
            self.harvester_class.title(),
        )

    def test_category(self):
        self.assertEqual(
            "Dessert",
            self.harvester_class.category(),
        )

    def test_total_time(self):
        self.assertEqual(30, self.harvester_class.total_time())

    def test_cook_time(self):
        self.assertEqual(15, self.harvester_class.cook_time())

    def test_prep_time(self):
        self.assertEqual(15, self.harvester_class.cook_time())

    def test_yields(self):
        self.assertEqual("6 serving(s)", self.harvester_class.yields())

    def test_image(self):
        self.assertEqual(
            "https://madensverden.dk/wp-content/uploads/2017/08/billederesultat-for-rabarbertrifli.jpg",
            self.harvester_class.image(),
        )

    def test_nutrients(self):
        self.assertEqual(
            {"calories": "270 kcal", "servingSize": "1 person"},
            self.harvester_class.nutrients(),
        )

    def test_ingredients(self):
        self.assertEqual(
            [
                "400 gram rabarber",
                "75 gram sukker",
                "10 gram vaniljesukker",
                "2 pasteuriserede æggeblommer (1 bæger)",
                "40 gram sukker",
                "10 gram majsstivelse",
                "2,5 deciliter sødmælk",
                "2,5 deciliter piskefløde",
                "100 gram makroner",<commit_msg>Call the right method from MadensVerden in test_prep_time (#498)<commit_after>from recipe_scrapers.madensverden import MadensVerden
from tests import ScraperTest


class TestMadensVerdenScraper(ScraperTest):

    scraper_class = MadensVerden

    def test_host(self):
        self.assertEqual("madensverden.dk", self.harvester_class.host())

    def test_title(self):
        self.assertEqual(
            "Rabarbertrifli - nem trifli med rabarber og makron",
            self.harvester_class.title(),
        )

    def test_category(self):
        self.assertEqual(
            "Dessert",
            self.harvester_class.category(),
        )

    def test_total_time(self):
        self.assertEqual(30, self.harvester_class.total_time())

    def test_cook_time(self):
        self.assertEqual(15, self.harvester_class.cook_time())

    def test_prep_time(self):
        self.assertEqual(15, self.harvester_class.prep_time())

    def test_yields(self):
        self.assertEqual("6 serving(s)", self.harvester_class.yields())

    def test_image(self):
        self.assertEqual(
            "https://madensverden.dk/wp-content/uploads/2017/08/billederesultat-for-rabarbertrifli.jpg",
            self.harvester_class.image(),
        )

    def test_nutrients(self):
        self.assertEqual(
            {"calories": "270 kcal", "servingSize": "1 person"},
            self.harvester_class.nutrients(),
        )

    def test_ingredients(self):
        self.assertEqual(
            [
                "400 gram rabarber",
                "75 gram sukker",
                "10 gram vaniljesukker",
                "2 pasteuriserede æggeblommer (1 bæger)",
                "40 gram sukker",
                "10 gram majsstivelse",
                "2,5 deciliter sødmælk",
                "2,5 deciliter piskefløde",
                "100 gram makroner",
{'fraction_non_alphanumeric': 0.10352362742420104, 'fraction_numerical': 0.021032504780114723, 'mean_word_length': 2.2094653812445224, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5495112', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1102, 'n_words': 199}