mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 20:09:25 +00:00
Use pytest for tests (#681)
* use pytest for tests Eh ouais, il y a que la config qui change. Pytest est implémentable par étapes. Et ça c'est beau. * rework tests with pytest * remove unittest custom TestRunner * Edit doc and CI
This commit is contained in:
@ -196,16 +196,16 @@ Pour lancer les tests il suffit d'utiliser la commande intégrée à django.
|
||||
.. code-block:: bash
|
||||
|
||||
# Lancer tous les tests
|
||||
python manage.py test
|
||||
pytest
|
||||
|
||||
# Lancer les tests de l'application core
|
||||
python manage.py test core
|
||||
pytest core
|
||||
|
||||
# Lancer les tests de la classe UserRegistrationTest de core
|
||||
python manage.py test core.tests.UserRegistrationTest
|
||||
pytest core.tests.UserRegistrationTest
|
||||
|
||||
# Lancer une méthode en particulier de cette même classe
|
||||
python manage.py test core.tests.UserRegistrationTest.test_register_user_form_ok
|
||||
pytest core.tests.UserRegistrationTest.test_register_user_form_ok
|
||||
|
||||
Vérifier les dépendances Javascript
|
||||
-----------------------------------
|
||||
|
Reference in New Issue
Block a user