-
-
docker-compose run app sh -c "python manage.py test examples app core && flake8"
(nb flake8 currently not working with python 3.9)
-
-
python -m unittest discover app/tests/
-
python app/manage.py test app/tests/
-
- if sys.argv[0] contains 'manage.py'
- use
django.test.TestCase
- use
- if sys.argv[0] contains '-m unittest'
- use
unittest.TestCase
- use
- if sys.argv[0] contains 'manage.py'
-
- every folder under app/tests must contain init.py
- every script name must match test*.py
- every class must subclasas TestCase
- every test method name must match test*
atrox3d / recipe-app-api Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License