Projet

Général

Profil

Bug #20317

caplog.records() n'existe plus dans pytest >= 3.3

Ajouté par Thomas Noël il y a plus de 6 ans. Mis à jour il y a plus de 5 ans.

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

Révision 72caf605 (diff)
Ajouté par Thomas Noël il y a plus de 6 ans

tests: update for pytest 3.3 with merged catchlog (#20317)

Historique

#2

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

pytest>=3.3.0 sinon ack.

#3

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)

#4

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

Formats disponibles : Atom PDF