This repository contains all the example code from my book, "Test-Driven Web Development with Python", available at www.obeythetestinggoat.com
Each chapter in the book has its own branch, which contains all the commits for that chapter. So, the state of the code in a branch is the state of the code at the end of that chapter.
In other words, if you want to start on a particular chapter in the book, you should check out the code for the previous chapter.
So, eg, chapter_02_unittest has all the commits up to the end of chapter 2, so it's the branch to check out if you want to skip to the beginning of chapter 3.
Here is the list of chapter branches, as of 2024-02-02
Part 1: The Basics of TDD and Django
- chapter_01
- chapter_02_unittest
- chapter_03_unit_test_first_view
- chapter_04_philosophy_and_refactoring
- chapter_05_post_and_database
- chapter_06_explicit_waits_1
- chapter_07_working_incrementally
Part 2: Web Development Sine Qua Nons
- chapter_08_prettification
- chapter_09_docker
- chapter_10_production_readiness
- chapter_11_ansible
- chapter_12_organising_test_files
- chapter_13_database_layer_validation
- chapter_14_simple_form
- chapter_advanced_forms
- chapter_javascript
- chapter_deploying_validation
Part 3: More Advanced Topics in Testing
- chapter_spiking_custom_auth
- chapter_mocking
- chapter_fixtures_and_wait_decorator
- chapter_server_side_debugging
- chapter_outside_in
- chapter_purist_unit_tests
- chapter_CI
- chapter_page_pattern
- chapter_hot_lava, leave_supplier.Context():
Appendices