Development #57109
Tests qui ne passent pas lorsque lanćes spécifiquement : tests/api/test_fillslot.py
Début:
20 septembre 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
tox -e py3-django22-codestyle-coverage-pylint -- tests/api/test_fillslot.py --- tests/api/test_fillslot.py:277: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/tox-cazino/chrono/py3-django22-codestyle-coverage-pylint/lib/python3.9/site-packages/django_webtest/__init__.py:151: in post return super(DjangoTestApp, self).post(url, *args, **kwargs) /tmp/tox-cazino/chrono/py3-django22-codestyle-coverage-pylint/lib/python3.9/site-packages/webtest/app.py:368: in post return self._gen_request('POST', url, params=params, headers=headers, /tmp/tox-cazino/chrono/py3-django22-codestyle-coverage-pylint/lib/python3.9/site-packages/webtest/app.py:749: in _gen_request return self.do_request(req, status=status, /tmp/tox-cazino/chrono/py3-django22-codestyle-coverage-pylint/lib/python3.9/site-packages/django_webtest/__init__.py:100: in do_request response = super(DjangoTestApp, self).do_request(req, status, /tmp/tox-cazino/chrono/py3-django22-codestyle-coverage-pylint/lib/python3.9/site-packages/webtest/app.py:646: in do_request self._check_status(status, res) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <django_webtest.DjangoTestApp object at 0x7ff671ecb760>, status = 401, res = <403 Forbidden application/json body=b'{"detail...d."}'/58> /tmp/tox-cazino/chrono/py3-django22-codestyle-coverage-pylint/lib/python3.9/site-packages/webtest/app.py:680: AppError
Fichiers
Révisions associées
Historique
Mis à jour par Emmanuel Cazenave il y a plus de 2 ans
- Statut changé de Nouveau à En cours
- Assigné à mis à Emmanuel Cazenave
Mis à jour par Emmanuel Cazenave il y a plus de 2 ans
- Fichier 0001-tests-disable-django-webtest-custom-authentication-5.patch 0001-tests-disable-django-webtest-custom-authentication-5.patch ajouté
- Statut changé de En cours à Solution proposée
- Patch proposed changé de Non à Oui
De la doc de django-webtest : "It also features an optional user argument for self.app.get, self.app.post, etc. to help making authorized requests. ".
On se sert pas de cette fonctionnalité et c'est elle qui fait planter ces tests lancés de façon isolé, pas compris pourquoi ça marchait lorsque tous les tests sont exécutés, c'est un puits sans fond, mais peu importe, je désactive.
Mis à jour par Benjamin Dauvergne il y a plus de 2 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Emmanuel Cazenave il y a plus de 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit b9da27a2b9a6df13c0337b65125cbe874accd850 Author: Emmanuel Cazenave <ecazenave@entrouvert.com> Date: Mon Sep 20 16:50:31 2021 +0200 tests: disable django-webtest custom authentication (#57109)
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
tests: disable django-webtest custom authentication (#57109)