Testing

June 08, 2022
Flakey tests in a large Python/Django codebase

A list of test anti-patterns that lead to flakiness.

August 26, 2017
A mnemonic for mock decorators

An easy way to remember the order arguments get injected.

January 31, 2015
Avoiding clashing Django migrations

A simple Travis test to avoid frustration

July 09, 2013
purl, URI templates and generated tests

Matching the RFC using Nose’s test generators

April 22, 2013
Disable database access when writing unit tests in Django

A decorator for the testing puritan

September 09, 2012
March 21, 2012
How to reload Django's URL config

A rare sighting of the ‘reload’ function in the wild

March 01, 2012
Testing HTTPS handling in Django

Spoofing a HTTPS request using the Django test client

January 13, 2012
Introducing unittest-xml: testing XML in Python

A simple module for making XPath assertions

April 20, 2011
Coloured output while doing TDD with Django and Fabric

Providing simple coloured feedback