In this chapter, we will configure, write, and execute unit tests and learn a few things related to deployment. We will do the following:
- Set up unit tests with pytest
- Create a database for testing
- Create fixtures to perform setup and teardown tasks for running clean tests
- Write the first round of unit tests
- Run unit tests with pytest and check testing coverage
- Improve testing coverage
- Understand strategies for deployments and scalability