Projet

Général

Profil

Development #63302

tests: retirer l'usager de pytest-httpbin (httpbin projet abandonné)

Ajouté par Benjamin Dauvergne il y a environ 2 ans. Mis à jour il y a environ 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
29 mars 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Ça se remplace facilement par pytest-localserver et l'utilisation de HTTMock.


Fichiers

Révisions associées

Révision 05a3a55e (diff)
Ajouté par Thomas Noël il y a environ 2 ans

tests: remove use of pytest-httpbin (#63302)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a environ 2 ans

#2

Mis à jour par Thomas Noël il y a environ 2 ans

Jenkins rouge pour un petit détail, chez moi ça passe avec :

diff --git a/tests/test_requests.py b/tests/test_requests.py
index c956e13d..414aabef 100644
--- a/tests/test_requests.py
+++ b/tests/test_requests.py
@@ -465,7 +465,7 @@ def test_log_http_request(caplog):
     assert extra == {
         'request_headers': {
             'Accept': '*/*',
-            'Accept-Encoding': 'gzip, deflate, br',
+            'Accept-Encoding': 'gzip, deflate',
             'Connection': 'keep-alive',
         },
         'request_url': 'https://example.com/',
#3

Mis à jour par Thomas Noël il y a environ 2 ans

Poussé une nouvelle branche avec cette modif.

(J'ai du passer à black 22.3 pour parvenir à commiter, à cause de https://github.com/psf/black/issues/2976)

#4

Mis à jour par Lauréline Guérin il y a environ 2 ans

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

ok si jenkins est vert

#5

Mis à jour par Thomas Noël il y a environ 2 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 05a3a55e754fa52fda6c4fb6080daf21c39711a2
Author: Thomas NOËL <tnoel@entrouvert.com>
Date:   Thu Mar 31 12:04:53 2022 +0200

    tests: remove use of pytest-httpbin (#63302)

#6

Mis à jour par Transition automatique il y a environ 2 ans

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

Mis à jour par Transition automatique il y a presque 2 ans

Automatic expiration

Formats disponibles : Atom PDF