How a Solo Hobbyist Learned to Love Testing
summary
Built a Django live game blog that automates inning updates and score headers, using pytest and a TDD loop that starts with failing URL/status tests and proceeds to view, template, and context until tests pass. Four initially xfailed tests become green by adding URL patterns, a view that returns an HttpResponse, a blank template, and context-driven rendering. The workflow reveals the request→response steps, keeps a dependable test suite across months off, and speeds safe feature changes.
AI-written summary · about
chapters (10)
- 0:00Testing as solo hobbyist
- 1:03Zero to hobbyist in 10 years
- 3:57Django app for IU baseball fans
- 6:48Test-driven development discovery
- 8:15Live demo: Django view tests
- 20:40Django view coding basics
- 21:44Testing improves code understanding
- 22:30Complete test suite benefits
- 23:33Closing remarks
- 24:19Q&A on test-driven development
related talks
23mThe Unspeakable Horror of Discovering You Didn't Write Tests
35mTurning test writing into a consistently brief and pleasant experience
32mEasy, Breezy, Beautiful... Django Unit Tests with Colleen Dunlap
30mVisual Testing with PyCharm and pytest
49mKeynote - Testing in Django
30mThe Unspeakable Horror of Discovering You Didn't Write Tests
28mEgad! How Do We Start Writing Better Tests?
29mSecrets of the testing masters
