A small project used to introduce TDD
- Free software: MIT license
- Documentation: https://calc.readthedocs.io.
Please do the following steps to install the dependencies and make sure you are ready to go:
- Clone this repository
- Install requirements
pip install -r requirements/dev.txt
- Check your setup
Check that pytest is installed properly:
This command should show a message about the number of tests passed (there should be no failures).
- Fetch tags from the remote
git fetch --all --tags --prune
- (Optional) Set up branches
During the workshop, I will ask you to checkout different tagged commits as starting points for different exercises.
The command for checking out a tag is:
git checkout tags/<tag-name> -b <branch-name>
The following are the tags used for the exercises & solutions:
In case we have time for it, the bonus mocking exercise is from a different repository:
git clone https://github.com/pycabook/fileinfo.git
Tags for the bonus exercise & solution: