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:
parent
085c489b05
commit
bcd0fcc920
6 changed files with 51 additions and 11 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue