From f81edb3090f2fce0a9d85384fbc6b962bab9d7dc Mon Sep 17 00:00:00 2001 From: Florian Dupret Date: Wed, 7 Apr 2021 08:49:12 +0200 Subject: [PATCH] Fix encoding issue in cleaner unit test --- tests/unit_tests/test_cleaner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/test_cleaner.py b/tests/unit_tests/test_cleaner.py index b1630a132..dbe597281 100644 --- a/tests/unit_tests/test_cleaner.py +++ b/tests/unit_tests/test_cleaner.py @@ -80,7 +80,7 @@ def test_cleaner_instructions(instructions): def test_html_with_recipe_data(): path = TEST_RAW_HTML.joinpath("healthy_pasta_bake_60759.html") url = "https://www.bbc.co.uk/food/recipes/healthy_pasta_bake_60759" - recipe_data = extract_recipe_from_html(open(path).read(), url) + recipe_data = extract_recipe_from_html(open(path,encoding="utf8").read(), url) assert len(recipe_data["name"]) > 10 assert len(recipe_data["slug"]) > 10