Projet

Général

Profil

Development #14046

utiliser la fixture mailoutbox dans les tests

Ajouté par Serghei Mihai il y a plus de 7 ans. Mis à jour il y a environ 7 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
22 novembre 2016
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Les tests échouent avec le message:

>           assert mail.outbox  
E           AssertionError: To access mail.outbox, use the mailoutbox fixture.
E           See http://pytest-django.readthedocs.io/en/latest/helpers.html#mailoutbox for more information.


Fichiers

Révisions associées

Révision 048f0681 (diff)
Ajouté par Serghei Mihai il y a plus de 7 ans

tests: use new 'mailoutbox' fixture (#14046)

Historique

#1

Mis à jour par Serghei Mihai il y a plus de 7 ans

#2

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

Il manque une modification au tox.ini pour préciser la version requise.

assert len(mailoutbox) comparer à la taille attendue ?

#4

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

ok.

#5

Mis à jour par Serghei Mihai il y a plus de 7 ans

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

commit 048f06810c5f6b918c26c61977eb7450b8742e92
Author: Serghei Mihai <smihai@entrouvert.com>
Date:   Wed Nov 23 12:31:02 2016 +0100

    tests: use new 'mailoutbox' fixture (#14046)
#6

Mis à jour par Serghei Mihai il y a environ 7 ans

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

Formats disponibles : Atom PDF