•  

Testing and Django

A session at PyCon US 2012

Saturday 10th March, 2012

11:45am to 12:30pm (PST)

A deep dive into writing tests with Django, covering Django's custom test-suite-runner and the testing utilities in Django, what all they actually do, how you should and shouldn't use them (and some you shouldn't use at all!). Also, guidelines for writing good tests (with or without Django), and my least favorite things about testing in Django (and how I'd like to fix them).

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.

About the speaker

This person is speaking at this event.
Carl Meyer

web developer at Mozilla, Django/pip/virtualenv core developer bio from Twitter

Next session in E4

1:35pm Web Server Bottlenecks And Performance Tuning by Graham Dumpleton

Coverage of this session

Sign in to add slides, notes or videos to this session

Tell your friends!

When

Time 11:45am12:30pm PST

Date Sat 10th March 2012

Short URL

lanyrd.com/spccz

Official session page

us.pycon.org/…e/presentation/412/

View the schedule

Share

Topics

See something wrong?

Report an issue with this session