From 8931fa855755704bb34f60233ee292d8124dc9ce Mon Sep 17 00:00:00 2001 From: Jakob Wenzel Date: Thu, 7 Jan 2021 19:05:12 +0100 Subject: [PATCH] fix ingredient parser testcase * call correct function * flip assertion --- cookbook/tests/other/test_edits_recipe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/tests/other/test_edits_recipe.py b/cookbook/tests/other/test_edits_recipe.py index 6831cef14..25bc92452 100644 --- a/cookbook/tests/other/test_edits_recipe.py +++ b/cookbook/tests/other/test_edits_recipe.py @@ -1,6 +1,6 @@ import json -from cookbook.helper.ingredient_parser import parse_ingredient +from cookbook.helper.ingredient_parser import parse from cookbook.helper.recipe_url_import import get_from_html from cookbook.tests.test_setup import TestBase @@ -83,5 +83,5 @@ class TestEditsRecipe(TestBase): count = 0 for key, val in expectations.items(): count += 1 - parsed = parse_ingredient(key) - self.assertNotEqual(val, parsed) + parsed = parse(key) + self.assertEqual(val, parsed)