Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

book-example

> 编程语言
Open source

Example code for my book on TDD with Python

1.5K stars0 likes1 views
WebsiteGitHub

About

Example code for my book on TDD with Python

This repository contains all the example code from my book, "Test-Driven Web Development with Python", available at www.obeythetestinggoat.com

Checking out code for individual chapters

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

  • appendix_Django_Class-Based_Views
  • book/appendix_bdd
  • appendix_rest_api
  • appendix_DjangoRestFramework

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言