Bug #20317
caplog.records() n'existe plus dans pytest >= 3.3
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
28 novembre 2017
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Depuis pytest 3.3 :
with mock.patch('wcs.portfolio.http_post_request') as http_post_request: http_post_request.return_value = None, 200, 'null', None resp = resp.form.submit('button_export_to') assert http_post_request.call_count == 1 > assert ('file template.pdf pushed to portfolio of foo@localhost' == caplog.records()[-1].message) E TypeError: 'list' object is not callable
Fichiers
Révisions associées
Historique
Mis à jour par Thomas Noël il y a plus de 6 ans
- Fichier 0001-tests-update-for-pytest-3.3-with-merged-catchlog-203.patch 0001-tests-update-for-pytest-3.3-with-merged-catchlog-203.patch ajouté
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a plus de 6 ans
- Statut changé de Nouveau à Résolu (à déployer)
commit 72caf6052018f574c9b9c9e3be29c4ed84d92e8c (HEAD -> master, origin/master, origin/HEAD) Author: Thomas NOEL <tnoel@entrouvert.com> Date: Tue Nov 28 11:22:15 2017 +0100 tests: update for pytest 3.3 with merged catchlog (#20317)
Mis à jour par Frédéric Péters il y a plus de 5 ans
- Statut changé de Résolu (à déployer) à Solution déployée
tests: update for pytest 3.3 with merged catchlog (#20317)