Projet

Général

Profil

Bug #42885

un test de tests/test_grenoble_gru.py dépend du service distant

Ajouté par Frédéric Péters il y a presque 4 ans. Mis à jour il y a presque 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
14 mai 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

    def test_demand_creation_with_invalid_params(app, setup):
        invalid_payload = BASIC_PAYLOAD.copy()
        invalid_payload['applicant_status'] = 42
        response = app.post_json(
            reverse('generic-endpoint',
                    kwargs={
                        'connector': 'grenoble-gru',
                        'slug': setup.slug,
                        'endpoint': 'create-demand'
                    }),
>           params=invalid_payload)
...
E           webtest.app.AppError: Bad response: 500 Internal Server Error (not 200 OK or 3xx redirect for
http://testserver/grenoble-gru/test/create-demand)
E           {"err_class": "requests.exceptions.SSLError", "err": 1, "err_desc": "HTTPSConnectionPool(host='itvvoirie-test.lametro.fr',
port=443): Max retries exceeded with url: /ws_typologie_demande.php (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed (_ssl.c:720)'),))", "data": null}

Fichiers

Révisions associées

Révision d0b6c50c (diff)
Ajouté par Thomas Noël il y a presque 4 ans

tests: add a missing request mock in grenoble_gru (#42885)

Historique

#1

Mis à jour par Serghei Mihai il y a presque 4 ans

  • Statut changé de Nouveau à En cours
  • Assigné à mis à Serghei Mihai
#2

Mis à jour par Thomas Noël il y a presque 4 ans

  • Assigné à changé de Serghei Mihai à Thomas Noël
#3

Mis à jour par Thomas Noël il y a presque 4 ans

(ça m'a pris un peu de temps de comprendre qu'il n'y avait pas d'erreur à mocker)

#4

Mis à jour par Serghei Mihai il y a presque 4 ans

  • Statut changé de Solution proposée à Solution validée

Merci.

#5

Mis à jour par Thomas Noël il y a presque 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit d0b6c50cb2b17c64125c5bdba4c33ac9e733e0aa
Author: Thomas NOEL <tnoel@entrouvert.com>
Date:   Thu May 14 15:05:15 2020 +0200

    tests: add a missing request mock in grenoble_gru (#42885)

#6

Mis à jour par Frédéric Péters il y a presque 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF