0001-tests-fix-holidays-request-mock-65806.patch
tests/test_holidays.py | ||
---|---|---|
18 | 18 | |
19 | 19 | |
20 | 20 |
def ics_data(url, request): |
21 |
if url.path == 'https://fr.ftp.opendatasoft.com/openscol/fr-en-calendrier-scolaire/Zone-A.ics':
|
|
21 |
if url.path == '/openscol/fr-en-calendrier-scolaire/Zone-A.ics': |
|
22 | 22 |
return {'content': RESPONSE_ZONE_A, 'request': request, 'status_code': 200} |
23 |
if url.path == 'https://fr.ftp.opendatasoft.com/openscol/fr-en-calendrier-scolaire/Zone-B.ics':
|
|
23 |
if url.path == '/openscol/fr-en-calendrier-scolaire/Zone-B.ics': |
|
24 | 24 |
return {'content': RESPONSE_ZONE_B, 'request': request, 'status_code': 200} |
25 | 25 | |
26 | 26 | |
27 |
- |