Aug 07, 2017
This post explores how to extract arrangement code when working with the Arrange Act Assert pattern so that it can be used with certainty across the test suite.
Jul 06, 2017
This post introduces the Arrange Act Assert pattern of testing and shows how it can be used in a Python context with Pytest.
May 30, 2017
An updated simple assertion helper for comparing instances of Django’s Q objects using pytest in Python 3.
Nov 13, 2016
Using pip-tools with multiple requirements files can be difficult. This post describes my current workflow that manages the complexity with a Makefile.
Oct 12, 2016
Exploring the various model instance factories available for Django. Each factory is tested based on the quality of the instances it creates. Bonus: talk version and slides also available.
Sep 18, 2016
My PyConUK 2016 talk about the AAA pattern for unit tests and how using it can help us all make our tests cleaner, easier to read and as Pythonic as possible.
May 12, 2016
Exploring Python’s unittest module boolean assert methods and how they can be misleading in certain situations, but not if you RTFM of course.
Mar 28, 2016
A super simple assertion helper for comparing instances of Django’s Q objects.
Dec 14, 2013
Notes to myself on generators and how to create them with generator expressions and the yield statement.
Oct 22, 2013
Notes to myself about Python decorators with a focus on making them testable.
Jun 16, 2013
Talk at Pyramid London meetup about testing strategies for Pyramid applications.