~/talk

Testing Django with Travis CI

Talkat PyCon Canada 2012 · 2012-11-09..11-11· [testing, django]
links:none on file
slides:none on file

A practical how-to for novice Django developers that shows writing tests with Django’s TestCase, loading fixtures, and running them with python manage.py test to catch regressions, then wiring the repo to Travis CI via a Travis.yml to run a matrix of Python (2.6, 2.7, 3.2) and Django (1.3, 1.4) combinations, testing after every push and on pull requests, viewing per-build logs and durations, using databases (Postgres/MySQL/SQLite), skipping commits with CI skip, and auto-notifying or deploying on success.

AI-written summary · about

  1. 0:00Intro
  2. 0:37Overview
  3. 2:20Why Test
  4. 3:51What to Test
  5. 5:50Fixtures
  6. 7:12Code Flow
  7. 8:27Travis CI
  8. 11:47Demo
  9. 13:52Notifications
  10. 14:40Skip Commit
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.