From ab3aa9b6b4886f300b15f5bcdbbf1a201c627f78 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Tue, 31 May 2022 14:19:00 +0200 Subject: [PATCH] tests: fix holidays request mock (#65806) --- tests/test_holidays.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_holidays.py b/tests/test_holidays.py index de5bb50d..1aa7056d 100644 --- a/tests/test_holidays.py +++ b/tests/test_holidays.py @@ -18,9 +18,9 @@ with open(os.path.join(os.path.dirname(__file__), 'data/holidays/Zone-B.ics')) a def ics_data(url, request): - if url.path == 'https://fr.ftp.opendatasoft.com/openscol/fr-en-calendrier-scolaire/Zone-A.ics': + if url.path == '/openscol/fr-en-calendrier-scolaire/Zone-A.ics': return {'content': RESPONSE_ZONE_A, 'request': request, 'status_code': 200} - if url.path == 'https://fr.ftp.opendatasoft.com/openscol/fr-en-calendrier-scolaire/Zone-B.ics': + if url.path == '/openscol/fr-en-calendrier-scolaire/Zone-B.ics': return {'content': RESPONSE_ZONE_B, 'request': request, 'status_code': 200} -- 2.30.2