Projet

Général

Profil

Bug #21610

tests cassé avec pytest 3.4.0

Ajouté par Frédéric Péters il y a plus de 6 ans. Mis à jour il y a plus de 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
02 février 2018
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Non
Planning:

Description

cf la différence entre https://jenkins.entrouvert.org/job/authentic2/2477/console et https://jenkins.entrouvert.org/job/authentic2/2478/console

platform linux2 -- Python 2.7.13, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
...
tests/test_auth_oidc.py .........                                        [ 53%]

vs

platform linux2 -- Python 2.7.13, pytest-3.4.0, py-1.5.2, pluggy-0.6.0
...
tests/test_auth_oidc.py ...FF..FF                                        [ 53%]

Révisions associées

Révision 7c2b5f3f (diff)
Ajouté par Frédéric Péters il y a plus de 6 ans

tox: limit to pytest < 3.4 for now (#21610)

Révision 38bb35c8 (diff)
Ajouté par Benjamin Dauvergne il y a plus de 6 ans

auth_oidc: log token revocation at the INFO level to make test pass (fixes #21610)

In pytest>=3.4.0 the caplog does not capture all log levels but follow the
default logging configuration. As this event was looked by the test and
the information is usefull, the best fix is to raise the log level and
to not modify the test.

Révision f2e4208f (diff)
Ajouté par Benjamin Dauvergne il y a plus de 6 ans

Revert "tox: limit to pytest < 3.4 for now (#21610)"

This reverts commit 7c2b5f3fcbae4532c4a99def28b38223be2c96d0.

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 6 ans

(je viens de pousser un commit modifiant tox.ini pour se limiter à <3.4, mais ça reste un bug).

#2

Mis à jour par Benjamin Dauvergne il y a plus de 6 ans

  • Statut changé de Nouveau à Résolu (à déployer)
  • % réalisé changé de 0 à 100
#3

Mis à jour par Benjamin Dauvergne il y a plus de 5 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF