OddBird
OddBird

Talk Details

Testing and Django

by Carl Meyer

Carl Meyer is an active owner providing oversight and counsel to the development team, and core developer of the Django Python web framework.

Django has a fair bit of custom test code: a custom TestSuiteRunner, custom TestCase subclasses, some test-only monkeypatches to core Django code, and a raft of testing utilities. I’ll cover as much of that code as I find interesting and non-trivial, taking a close look at what it’s actually doing and what that means for your tests.

This will be a highly opinionated talk. There are some things in Django’s test code I really don’t like; I’ll talk about why, and how I’d like to see them changed. As a natural part of this, I’ll also be outlining some principles I try to follow for writing effective and maintainable tests, and note where Django makes it easy or hard.

This is an “extreme” talk, so I’ll be assuming you’ve used Django and done some testing, and you’re familiar with the basic concepts of each. This won’t be an introductory “testing with Django” howto.

Featured Videos

Event Schedule

No events scheduled

Invite us to present

Previously Presented At…

PyCon

on in Santa Clara, CA

Ask us anything.

We’re happy to answer your questions, big or small. If we’re a good fit for your custom web project, we’ll offer a free in-depth assessment!

Schedule a call with Miriam