Development #40098
Ajout de tests
Début:
24 février 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Pour améliorer la couverture...
Fichiers
Demandes liées
Révisions associées
tests: add test to environment views and command (#40098)
tests: add test to tenant management commands (#40098)
tests: add test to home views (#40098)
tests: add test to agent worker (#40098)
tests: add test to profile views (#40098)
Historique
Mis à jour par Nicolas Roche il y a environ 4 ans
- Fichier 0001-tests-add-test-to-theme-views-40098.patch 0001-tests-add-test-to-theme-views-40098.patch ajouté
- Fichier 0002-tests-add-test-to-environment-views-and-command-4009.patch 0002-tests-add-test-to-environment-views-and-command-4009.patch ajouté
- Fichier 0003-tests-add-test-to-tenant-management-commands-40098.patch 0003-tests-add-test-to-tenant-management-commands-40098.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
pour l'instant juste 3% de gagné (78% de lignes couvertes)
Mis à jour par Nicolas Roche il y a environ 4 ans
- Fichier 0004-tests-add-test-to-home-views-40098.patch 0004-tests-add-test-to-home-views-40098.patch ajouté
- Fichier 0005-tests-add-test-to-agent-worker-40098.patch 0005-tests-add-test-to-agent-worker-40098.patch ajouté
- Fichier 0006-tests-add-test-to-profile-views-40098.patch 0006-tests-add-test-to-profile-views-40098.patch ajouté
- Statut changé de En cours à Solution proposée
5% de plus
Mis à jour par Nicolas Roche il y a environ 4 ans
- Lié à Development #40257: Tourner en python3 ajouté
Mis à jour par Nicolas Roche il y a environ 4 ans
- Fichier 0004-tests-add-test-to-home-views-40098.patch 0004-tests-add-test-to-home-views-40098.patch ajouté
- Fichier 0005-tests-add-test-to-agent-worker-40098.patch 0005-tests-add-test-to-agent-worker-40098.patch ajouté
J'ai un peu retouché ces deux tests pour qu'ils passent aussi en python3.
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
Je veux bien quelques mots en commentaire pour :
+ if six.PY2: + reload(settings) + else: + importlib.reload(settings)
Mis à jour par Nicolas Roche il y a environ 4 ans
Dans hobo/settings.py on a :
if os.path.exists(local_settings_file): exec(open(local_settings_file).read())
j'ai fait ça afin de passer dessus dans le test
tests_multitenant/test_agent_worker.py::test_deploy_host_with_agent_patterns
qui utilise la fixture
local_settings
.Mis à jour par Nicolas Roche il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit e9e096221332bbf6c1fe255f750edf182a7777ad Author: Nicolas ROCHE <nroche@entrouvert.com> Date: Thu Feb 27 00:50:14 2020 +0100 tests: add test to profile views (#40098) commit 8f8b71736b6864b4e524d69589507a58c3f9091a Author: Nicolas ROCHE <nroche@entrouvert.com> Date: Tue Feb 25 11:53:56 2020 +0100 tests: add test to agent worker (#40098) commit 4323e97b985d3d8c11dc7285cb731df823d0d313 Author: Nicolas ROCHE <nroche@entrouvert.com> Date: Mon Feb 24 18:23:17 2020 +0100 tests: add test to home views (#40098) commit df22a989c97f3eb531de3383770db398bb88d4ad Author: Nicolas ROCHE <nroche@entrouvert.com> Date: Sat Feb 22 14:21:47 2020 +0100 tests: add test to tenant management commands (#40098) commit 2825b4ddbd95a34494a090927e33439ffd000f7d Author: Nicolas ROCHE <nroche@entrouvert.com> Date: Sat Feb 22 22:09:03 2020 +0100 tests: add test to environment views and command (#40098) commit 748be27d261ef08e8becbc43f95700d6d72c305d Author: Nicolas ROCHE <nroche@entrouvert.com> Date: Sun Feb 23 20:13:06 2020 +0100 tests: add test to theme views (#40098)
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
tests: add test to theme views (#40098)