Keynote - Testing in Django
summary
Chronological tour of Django testing 1.0–1.11 gives concrete claims: TestCase’s transaction rollback speeds tests, parallel test workers each get their own database so forks avoid shared-state failures, and unit test subtests run many iterations (often ~200). Tools demonstrated include property-based tests with Hypothesis and mutation testing with mutpy (example: a module with 100% line coverage can still score 64% mutation, while others hit ~89–100%). Example shows moving VAT decision logic into a plain Python class and tests become simple, fast, reliable.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 2:16Overview
- 8:50TestRunner
- 12:36TestCase
- 20:04Subtest
- 24:21Test Classes
- 25:45Client
- 27:29Quality
- 32:52Mutation Testing
- 36:50Jango Tutorial
- 38:32Slow Tests
- 42:49Product Questionnaire
- 43:56View
- 45:43Conditional Check
- 47:29Decoupling
related talks
35mTurning test writing into a consistently brief and pleasant experience
32mEasy, Breezy, Beautiful... Django Unit Tests with Colleen Dunlap
59mKeynote: Testing Modern Web Apps Like a Champion
32mMore testing with fewer tests
41mTDD for APIs
27mHow a Solo Hobbyist Learned to Love Testing
35mTesting: Choose Your Weapons
22mBDD (Behavior Driven Development) Testing for Django Apps
