THIS TUTORIAL HAS REQUIREMENTS AND INSTRUCTIONS LISTED BELOW
The aim is to cover the basics of setting up a simple database-driven site using Python and Django, but using full, rigorous TDD at every step along the way.
We’ll learn how to set up functional tests with Selenium, how to set up Django, how to run Django unit tests, how TDD actually works in practice, the unit test / code cycle where we re-run the tests after each tiny, incremental change to the code, as well as all the basics of Django’s models, views and templates. We’ll talk about what to test, what not to test, what the point of all this testing is anyway, and I promise to make it all at least moderately entertaining.
Plus it’s all in Python 3!
TUTORIAL REQUIREMENTS AND INSTRUCTIONS FOR ATTENDEES
* Python 3.3+
* Django 1.7 (from https://github.com/django/django/archive/stable/1.7.×.zip)
There are detailed instructions for Windows, Mac and Linux on how to install things here:
* Attendees wishing to follow up on the session can find an entire book’s worth of TDD materials, available for free, at www.obeythetestinggoat.com
QUESTIONS for the speaker?: Use the “Leave a Comment or Question” section at the bottom to address them.
During his childhood Harry seemed to be doing everything right — learning to program BASIC on Thomson TO-7s (whose rubber keys went “boop” when you pressed them) and Logo on a Green-screen Amstrad PCW. Something went wrong as he grew up, and Harry wasted several years studying Economics, becoming a management consultant (shudder), and programming little aside from overcomplicated Excel spreadsheets.
But in 2009 Harry saw the light, let his true geek shine once again, did a new degree in Computer Science, and was lucky enough to secure an internship with Resolver Systems, the London-based company that has since morphed into PythonAnywhere. Here he was inculcated into the cult of Extreme Programming (XP), and rigorous TDD. After much moaning and dragging of feet, he finally came to see the wisdom of the approach, and now spreads the gospel of TDD through beginner’s workshops, tutorials and talks, with all the passion of a recent convert.
Harry is currently writing a book for O’Reilly, provisionally titled “Test-Driven Development of Web Applications with Python”. He is trying to persuade his editor to have the title changed to “Obey the Testing Goat!”.
Help us make this conference the best it can be for you. Have questions you'd like this speaker to address? Suggestions for issues that deserve extra attention? Feedback that you'd like to share with the speaker and other attendees?
Join the conversation here (requires login)
For exhibition and sponsorship opportunities, contact Sharon Cordesse at email@example.com
For information on trade opportunities with O'Reilly conferences contact firstname.lastname@example.org
For media-related inquiries, contact Maureen Jennings at email@example.com
View a complete list of OSCON contacts