mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-02 10:13:35 -05:00
Fix some pytests (#265)
* Fix encoding issue in cleaner unit test * Add VS Code task to run pytests * Fix FileExistsError when running Windows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user