From 254267c2a78f24c880b897e94214f9e76a1fc0d2 Mon Sep 17 00:00:00 2001 From: smilerz Date: Thu, 15 Apr 2021 10:15:59 -0500 Subject: [PATCH] update tests to handle url decoding --- cookbook/tests/other/_recipes.py | 2 +- cookbook/tests/other/test_url_import.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cookbook/tests/other/_recipes.py b/cookbook/tests/other/_recipes.py index ed0ae5dd5..a5958ae57 100644 --- a/cookbook/tests/other/_recipes.py +++ b/cookbook/tests/other/_recipes.py @@ -6,7 +6,7 @@ ALLRECIPES = { "servings": 4, "prepTime": 15, "cookTime": 25, - "image": "https://imagesvc.meredithcorp.io/v3/mm/image?url=https%3A%2F%2Fimages.media-allrecipes.com%2Fuserphotos%2F8145402.jpg", + "image": "https://imagesvc.meredithcorp.io/v3/mm/image?url=https://images.media-allrecipes.com/userphotos/8145402.jpg", "keywords": [ { "id": 1645424, diff --git a/cookbook/tests/other/test_url_import.py b/cookbook/tests/other/test_url_import.py index 76d3d69e8..35c747666 100644 --- a/cookbook/tests/other/test_url_import.py +++ b/cookbook/tests/other/test_url_import.py @@ -3,9 +3,10 @@ import pytest 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) +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) IMPORT_SOURCE_URL = 'api_recipe_from_source' DATA_DIR = "cookbook/tests/other/test_data/"