mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +02:00
feat: Create Recipe From HTML or JSON (#4274)
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
parent
edf420491f
commit
4c1d855690
23 changed files with 408 additions and 115 deletions
|
@ -20,7 +20,7 @@ and then use this test case by removing the `@pytest.mark.skip` and than testing
|
|||
@pytest.mark.asyncio
|
||||
async def test_recipe_parser(recipe_test_data: RecipeSiteTestCase):
|
||||
translator = local_provider()
|
||||
recipe, _ = await scraper.create_from_url(recipe_test_data.url, translator)
|
||||
recipe, _ = await scraper.create_from_html(recipe_test_data.url, translator)
|
||||
|
||||
assert recipe.slug == recipe_test_data.expected_slug
|
||||
assert len(recipe.recipe_instructions or []) == recipe_test_data.num_steps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue