The Test Client and Fixtures
Simulate requests and seed test data.
Testing Whole Views
Model tests are great, but you also want to test full pages. The test client lets you simulate a real browser request inside a test. 🌐
The Client Is Ready
Every TestCase gives you a self.client for free. No setup needed, it is wired up and waiting in each test.
All lessons in this course
- The Paginator Class
- Page Controls in ListView
- Writing TestCase and assertions
- The Test Client and Fixtures