Conference Schedule

Track one or two? Eeenie, meenie, miney, moe…

log in to bookmark.

Test Anything, Test Everything

A Tutorial presented by Dave Dash

Level

Intermediate

Description

Testing in Django is easy if you're testing models against your database. What happens when you need to test other-systems, like a search engine, or an API? This tutorial will cover how I built SphinxTestCase, ESTestCase and redisutils to allow us to maintain test coverage on our web sites.

Abstract

Testing backends other than your database can be tricky. It's entirely necessary, however, otherwise you'll start getting glaring holes in terms of coverage.

This tutorial will show you how to subclass TestCase and properly setup and teardown external systems.

It will also show you how to be nice to your other developers who may want to opt-out of testing backend systems (like search).