Harry Percival - Introduction to TDD with Django - PyCon 2018

Опубликовано: 21 Июнь 2026
на канале: PyCon 2018
18,071
315

Speaker: Harry Percival

Over the past few years, automated software testing has moved from being a niche interest to being the default assumption. This tutorial is an introduction to Test-Driven Development (TDD) for the world of web development in Python using the Django framework.

The tutorial is suitable for people who are new to either testing, or Django, or both, although some basic working knowledge of Python syntax (or programming in another language) is assumed.

Learn about:
Unit testing and Functional testing
the Selenium browser automation tool
Python's unittest standard library module
Django models, views and templates
testing front-end and back-end code
refactoring, using tests
the unit-test/code cycle, or Red-Green-Refactor, TDD workflow
and the Testing Goat, Python's unofficial mascot for testing!

Come prepared! You'll need a Python 3.6 virtualenv with Django and Selenium installed. Detailed instructions are provided [here](https://www.obeythetestinggoat.com/bo....


Slides can be found at: https://speakerdeck.com/pycon2018 and https://github.com/PyCon/2018-slides