Development #45105
Tourner les tests unitaires avec postgres (plutôt) que sqlite
Début:
14 juillet 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Parce qu'actuellement les tests sont cassés sur Jenkins : https://jenkins.entrouvert.org/job/corbo/305/
Fichiers
Révisions associées
tests: make tests insensible to postgres/sqlite (#45105)
tests: fix database name (#45105)
Historique
Mis à jour par Nicolas Roche il y a presque 4 ans
- Fichier 0002-tests-make-tests-insensible-to-postgres-sqlite-45105.patch 0002-tests-make-tests-insensible-to-postgres-sqlite-45105.patch ajouté
- Fichier 0001-tests-run-tests-using-postgres-45105.patch 0001-tests-run-tests-using-postgres-45105.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Patch copié depuis #39583.
Mis à jour par Paul Marillonnet il y a presque 4 ans
- Statut changé de Solution proposée à Solution validée
Ok.
Mis à jour par Nicolas Roche il y a presque 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit bb7858690b8381b7a7daec171ce624328c0baa9e Author: Nicolas ROCHE <nroche@entrouvert.com> Date: Tue Jul 14 13:39:14 2020 +0200 tests: make tests insensible to postgres/sqlite (#45105) commit e365818a357067900568ec25ab3de12e1bb61f90 Author: Nicolas ROCHE <nroche@entrouvert.com> Date: Tue Jul 14 13:39:01 2020 +0200 tests: run tests using postgres (#45105)
Mis à jour par Frédéric Péters il y a presque 4 ans
Sur exécution des tests après avoir taggué ce matin, échec majeur https://jenkins.entrouvert.org/job/corbo/310/
/tmp/tox-jenkins/corbo/py2-coverage-django111/local/lib/python2.7/site-packages/django/db/backends/base/creation.py:194: SystemExit ---------------------------- Captured stderr setup ----------------------------- Got an error creating the test database: ERREUR: la base de donn\xe9es \xab chrono-test- \xbb existe d\xe9j\xe0\n\nGot an error recreating the test database: ERREUR: la base de donn\xe9es \xab chrono-test- \xbb est en cours d'utilisation par d'autres utilisateurs\nDETAIL: 1 autre session utilise la base de donn\xe9es.\n
→
commit 20ba33c7b41b80bee438578a8fa006f27b49b96a Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Jul 17 08:02:44 2020 +0200 tests: fix database name (#45105)
avec :
- 'TEST': {'NAME': 'chrono-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-')[:63],}, + 'TEST': {'NAME': 'corbo-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-')[:63],},
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
tests: run tests using postgres (#45105)