Projet

Général

Profil

0001-tests-fix-holidays-request-mock-65806.patch

Valentin Deniaud, 31 mai 2022 14:44

Télécharger (1,09 ko)

Voir les différences:

Subject: [PATCH] tests: fix holidays request mock (#65806)

 tests/test_holidays.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
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
-