Bug #42885
un test de tests/test_grenoble_gru.py dépend du service distant
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
Historique
Mis à jour par Serghei Mihai il y a presque 4 ans
- Statut changé de Nouveau à En cours
- Assigné à mis à Serghei Mihai
Mis à jour par Thomas Noël il y a presque 4 ans
- Fichier 0001-tests-add-a-missing-request-mock-in-grenoble_gru-428.patch 0001-tests-add-a-missing-request-mock-in-grenoble_gru-428.patch ajouté
- Statut changé de En cours à Solution proposée
- Patch proposed changé de Non à Oui
(ça m'a pris un peu de temps de comprendre qu'il n'y avait pas d'erreur à mocker)
Mis à jour par Serghei Mihai il y a presque 4 ans
- Statut changé de Solution proposée à Solution validée
Merci.
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)
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
tests: add a missing request mock in grenoble_gru (#42885)