Projet

Général

Profil

Development #40099

Supprimer quelques warnings

Ajouté par Nicolas Roche il y a environ 4 ans. Mis à jour il y a environ 4 ans.

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

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

(un peu de ménage quoi)


Fichiers


Demandes liées

Lié à Hobo - Development #40257: Tourner en python3Fermé28 février 2020

Actions

Révisions associées

Révision d5486851 (diff)
Ajouté par Nicolas Roche il y a environ 4 ans

urls: use modern inclusion form for admin URLs (#40099)

Révision e2f826e1 (diff)
Ajouté par Nicolas Roche il y a environ 4 ans

tests: only check for is_authenticated/is_anonymous as attributes (#40099)

Révision 54ff2754 (diff)
Ajouté par Nicolas Roche il y a environ 4 ans

tests: get app as a fixture (#40099)

Historique

#2

Mis à jour par Nicolas Roche il y a environ 4 ans

Voici les 4 warnings que je peux supprimer dans le code de hobo :
  • warnings: cannot collect test class 'TestApp' because it has a init constructor
  • warnings: Old-style middleware using settings.MIDDLEWARE_CLASSES is deprecated
  • warnings: Using user.is_authenticated() and user.is_anonymous() as a method is deprecated
  • warnings: Passing a 3-tuple to django.conf.urls.include() is deprecated

Ici, je n'ai pas réussi à traiter le second warning.

#3

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

Les sujets trop longs, il faudrait raccourcir ça; aussi je serais plutôt pour considérer la suppression des warnings comme un effet de bord, genre :

  • 0001: urls: use modern inclusion form for admin URLs (#.....)
  • 0002: tests: only check for is_authenticated/is_anonymous as attributes (#.....)
  • 0003: tests: get app as a fixture (#.....)
#5

Mis à jour par Nicolas Roche il y a environ 4 ans

#6

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

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

Mis à jour par Nicolas Roche il y a environ 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 54ff275487c400ae63f410af0026aad74b43017b (HEAD -> wip/40099-suppress-some-warnings)
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Sat Feb 22 11:55:21 2020 +0100

    tests: get app as a fixture (#40099)

commit e2f826e19b74940852443480b7ab6b52b78dc58b
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Sat Feb 22 11:26:52 2020 +0100

    tests: only check for is_authenticated/is_anonymous as attributes (#40099)

commit d548685197a66caaf8760541dd0d0cf04d5fbe69
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Sat Feb 22 11:17:39 2020 +0100

    urls: use modern inclusion form for admin URLs (#40099)
#8

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