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 (
|
from ._recipes import (
|
||||||
ALLRECIPES, AMERICAS_TEST_KITCHEN, CHEF_KOCH, COOKPAD,
|
ALLRECIPES, AMERICAS_TEST_KITCHEN, CHEF_KOCH, COOKPAD,
|
||||||
COOKS_COUNTRY, DELISH, FOOD_NETWORK, GIALLOZAFFERANO, JOURNAL_DES_FEMMES,
|
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'
|
IMPORT_SOURCE_URL = 'api_recipe_from_source'
|
||||||
DATA_DIR = "cookbook/tests/other/test_data/"
|
DATA_DIR = "cookbook/tests/other/test_data/"
|
||||||
@ -30,17 +30,23 @@ def test_import_permission(arg, request):
|
|||||||
|
|
||||||
@pytest.mark.parametrize("arg", [
|
@pytest.mark.parametrize("arg", [
|
||||||
ALLRECIPES,
|
ALLRECIPES,
|
||||||
|
# test of custom scraper ATK
|
||||||
AMERICAS_TEST_KITCHEN,
|
AMERICAS_TEST_KITCHEN,
|
||||||
CHEF_KOCH,
|
CHEF_KOCH,
|
||||||
COOKPAD,
|
COOKPAD,
|
||||||
|
# test of custom scraper ATK
|
||||||
COOKS_COUNTRY,
|
COOKS_COUNTRY,
|
||||||
DELISH,
|
DELISH,
|
||||||
FOOD_NETWORK,
|
FOOD_NETWORK,
|
||||||
GIALLOZAFFERANO,
|
GIALLOZAFFERANO,
|
||||||
JOURNAL_DES_FEMMES,
|
JOURNAL_DES_FEMMES,
|
||||||
|
# example of recipes_scraper in with wildmode
|
||||||
|
# example of json only source
|
||||||
MADAME_DESSERT,
|
MADAME_DESSERT,
|
||||||
MARMITON,
|
MARMITON,
|
||||||
TASTE_OF_HOME,
|
TASTE_OF_HOME,
|
||||||
|
# example of non-json recipes_scraper
|
||||||
|
THE_SPRUCE_EATS,
|
||||||
TUDOGOSTOSO
|
TUDOGOSTOSO
|
||||||
])
|
])
|
||||||
def test_recipe_import(arg, u1_s1):
|
def test_recipe_import(arg, u1_s1):
|
||||||
|
Loading…
Reference in New Issue
Block a user