Skip to content

TDD training project from the ONS Software Development Practices training

Notifications You must be signed in to change notification settings

pricem14pc/onse-lab-doorbell

 
 

Repository files navigation

Doorbell Application - the TDD lab

This is the starting project for the TDD lab. Open it in PyCharm and work through the provided instructions.

Setup

Make sure you have the latest version of Python installed (currently 3.7.1) from the Python website.

From within the repository folder, please install the following in order to run the project:

# install the dependencies from Pipfile:
pipenv install --dev

Pipenv "automatically creates and manages a virtualenv for your projects, as well as adds/removes packages from your Pipfile as you install/uninstall packages. It also generates the ever-important Pipfile.lock, which is used to produce deterministic builds." 1

Running the Tests

Run the tests as follows:

pipenv run python -m pytest

PyCharm Run Configuration

Add a run configuration of type Python tests -> pytest with the following settings:

PyCharm Test Config

About

TDD training project from the ONS Software Development Practices training

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%