Types of Tests
Learn about the primary types of tests essential for Django development: unit tests that verify individual functions, integration tests that check combined components, and functional tests simulating user interactions. Understand how each test type contributes to building robust applications using test-driven development.
We'll cover the following...
There are several types of tests we could write for our application: units tests, integration tests, functional tests, smoke tests, and so on. We focus on the first three in this lesson.
Unit tests
When building a test-driven web application in Django, each piece of functionality is individually tested. For example, maybe we implement a specific function to get particular data from the database. We can then write a test to make sure that the expected data is returned. This small test that tests a particular functionality of our application is called a ...