Testing#
Testing the Template#
To ensure that your template is working, you can run the test.sh script.
The test.sh will do a run of the template, and then run the django tests and prospector against it.
test.sh keepenv
Note
If you do not pass the argument keepenv, it will delete the old virtualenvironment. If you want to do this, simply run:
test.sh
Testing/Validation within your Project#
This will be run automatically when you attempt to commit code but if you want to manually validate/fix your code syntax during development you can run:
poetry run pre-commit run --all-files
Django tests can be run by running:
./manage.py test