1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-03 04:25:24 +02:00

feat: Improve Recipe Imports with Cleaner (#4517)

This commit is contained in:
Michael Genson 2024-11-13 09:30:50 -06:00 committed by GitHub
parent 085c489b05
commit bcd0fcc920
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 51 additions and 11 deletions

View file

@ -40,7 +40,7 @@ test_cleaner_data = [
def test_cleaner_clean(json_file: Path, num_steps):
translator = local_provider()
recipe_data = cleaner.clean(json.loads(json_file.read_text()), translator)
assert len(recipe_data["recipeInstructions"]) == num_steps
assert len(recipe_data.recipe_instructions or []) == num_steps
def test_html_with_recipe_data():