added test for spruce eats
This commit is contained in:
parent
d449fc8fd8
commit
0640a265fc
4271
cookbook/tests/other/test_data/thespruceeats.html
Normal file
4271
cookbook/tests/other/test_data/thespruceeats.html
Normal file
File diff suppressed because one or more lines are too long
@ -6,7 +6,7 @@ from django.urls import reverse
|
||||
from ._recipes import (
|
||||
ALLRECIPES, AMERICAS_TEST_KITCHEN, CHEF_KOCH, COOKPAD,
|
||||
COOKS_COUNTRY, DELISH, FOOD_NETWORK, GIALLOZAFFERANO, JOURNAL_DES_FEMMES,
|
||||
MADAME_DESSERT, MARMITON, TASTE_OF_HOME, TUDOGOSTOSO)
|
||||
MADAME_DESSERT, MARMITON, TASTE_OF_HOME, THE_SPRUCE_EATS, TUDOGOSTOSO)
|
||||
|
||||
IMPORT_SOURCE_URL = 'api_recipe_from_source'
|
||||
DATA_DIR = "cookbook/tests/other/test_data/"
|
||||
@ -30,17 +30,23 @@ def test_import_permission(arg, request):
|
||||
|
||||
@pytest.mark.parametrize("arg", [
|
||||
ALLRECIPES,
|
||||
# test of custom scraper ATK
|
||||
AMERICAS_TEST_KITCHEN,
|
||||
CHEF_KOCH,
|
||||
COOKPAD,
|
||||
# test of custom scraper ATK
|
||||
COOKS_COUNTRY,
|
||||
DELISH,
|
||||
FOOD_NETWORK,
|
||||
GIALLOZAFFERANO,
|
||||
JOURNAL_DES_FEMMES,
|
||||
# example of recipes_scraper in with wildmode
|
||||
# example of json only source
|
||||
MADAME_DESSERT,
|
||||
MARMITON,
|
||||
TASTE_OF_HOME,
|
||||
# example of non-json recipes_scraper
|
||||
THE_SPRUCE_EATS,
|
||||
TUDOGOSTOSO
|
||||
])
|
||||
def test_recipe_import(arg, u1_s1):
|
||||
|
Loading…
Reference in New Issue
Block a user