Development #85511
test: Compatibilité Python 3.11
Début:
10 janvier 2024
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
Une modification des mock de unittest empêche deux tests de passer :
FAILED tests/test_lingo_payment.py::TestPolling::TestPollBackendCommand::test_cli_ok - ValueError: invalid format: 'combo.apps.lingo.management.commands.lingo-poll-backend' FAILED tests/test_lingo_payment.py::TestPolling::TestPollBackendCommand::test_cli_errors - ValueError: invalid format: 'combo.apps.lingo.management.commands.lingo-poll-backend'
Les lignes menant à l'exception dans les tests :
> with mock.patch('combo.apps.lingo.management.commands.lingo-poll-backend.input') as mock_input: tests/test_lingo_payment.py:2231:
with mock.patch('combo.apps.lingo.models.PaymentBackend.poll_backend') as mock_poll_backend: > with mock.patch( 'combo.apps.lingo.management.commands.lingo-poll-backend.input' ) as mock_input: tests/test_lingo_payment.py:2221:
Les noms de modules utilisés sont considérés (à juste titre) comme invalides (contenant des '-') après une modification dans unittest :
https://github.com/python/cpython/commit/ab7fcc8fbdc11091370deeb000a787fb02f9b13d
Révisions associées
Historique
Mis à jour par Robot Gitea il y a 4 mois
- Statut changé de Nouveau à En cours
- Assigné à mis à Yann Weber
Yann Weber (yweber) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/combo/pulls/213
- Titre : WIP: commands: rename lingo-poll-backend to lingo_poll_backend (#85511)
- Modifications : https://git.entrouvert.org/entrouvert/combo/pulls/213/files
Mis à jour par Robot Gitea il y a 4 mois
- Statut changé de Solution proposée à Solution validée
Benjamin Dauvergne (bdauvergne) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 4 mois
- Statut changé de Solution validée à Résolu (à déployer)
Yann Weber (yweber) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/combo/pulls/213
- Titre : commands: rename lingo-poll-backend to lingo_poll_backend (#85511)
- Modifications : https://git.entrouvert.org/entrouvert/combo/pulls/213/files
Mis à jour par Transition automatique il y a 3 mois
- Statut changé de Résolu (à déployer) à Solution déployée
commands: rename lingo-poll-backend to lingo_poll_backend (#85511)