Workshop 3: Continuous Integration of Django Application (Test)
We will work with the application repository django_tutorial. This application has a series of tests defined, which can be studied in the tests.py file in the polls directory.
Each test is defined by a function. In the file, you can read the comments to understand what each test is checking, or you can refer to the document Tests in the Django tutorial application.
To run the tests, execute:
python3 manage.py test At this moment, a temporary database is created where the defined tests are executed: