In this tutorial I will start a simple Python project from scratch and will develop it together with the attendees following a strict TDD methodology. The testing framework in use will be pytest, and during the training concepts like coverage, flake8 and mocks (with the official unittest.mock library) will be introduced.
The tutorial is divided in 3 sections:
During the tutorial we will use Python 3, but the concepts introduced are valid for Python 2 as well.
To setup your laptop follow these steps:
git clone https://github.com/lgiordani/ep2017_tdd.gitpip install -r requirements.txtThere will be no time to install Python or to set up the repository during the tutorial, so please take your time to configure your laptop. If you need help feel free to ping me during the conference.