Projet

Général

Profil

Development #39641

fonctionner avec pytest 5

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
07 février 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

    def create_temporary_pub(sql_mode=False, templates_mode=False, lazy_mode=False):
        if sql_mode is True:
>           if pytest.config.getoption('without_postgresql_tests'):
E           AttributeError: module 'pytest' has no attribute 'config'

Fichiers

Révisions associées

Révision 9ccf61e6 (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

tests: remove custom --without-postgresql-tests test option (#39641)

pytest.config was deprecated in pytest 5 and it's not worth adapting all
tests.

Révision d1bd081f (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

tests: remove usage of obsolete @postgresql mark (removed in #39641)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 4 ans

#2

Mis à jour par Frédéric Péters il y a environ 4 ans

Ça dégage la possibilité de passer --without-postgresql-tests sur la ligne de commande; c'est la vie™.

#3

Mis à jour par Emmanuel Cazenave il y a environ 4 ans

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

Frédéric Péters a écrit :

Ça dégage la possibilité de passer --without-postgresql-tests sur la ligne de commande;

Tu as la flemme

#4

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 9ccf61e6c94afb68e46cdaa0c00f17d73095ec94
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Feb 11 09:48:15 2020 +0100

    tests: remove custom --without-postgresql-tests test option (#39641)

    pytest.config was deprecated in pytest 5 and it's not worth adapting all
    tests.
#5

Mis à jour par Frédéric Péters il y a environ 4 ans

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

Formats disponibles : Atom PDF