Skip to content
A small project used to introduce TDD
Python Makefile
Branch: master
Clone or download
Pull request Compare This branch is 5 commits ahead, 2 commits behind pycabook:master.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Initial commit Dec 13, 2018
calc MeteoriteStats class added Dec 17, 2018
docs Initial commit Dec 13, 2018
requirements Initial commit Dec 13, 2018
tests MeteoriteStats class added Dec 17, 2018
.editorconfig Initial commit Dec 13, 2018
.gitignore Initial commit Dec 13, 2018
.travis.yml Initial commit Dec 13, 2018
AUTHORS.rst
CONTRIBUTING.rst Initial commit Dec 13, 2018
HISTORY.rst Initial commit Dec 13, 2018
LICENSE Initial commit Dec 13, 2018
MANIFEST.in Initial commit Dec 13, 2018
Makefile Initial commit Dec 13, 2018
README.rst format tag lists as a list Mar 28, 2019
punch_config.py Initial commit Dec 13, 2018
punch_version.py Initial commit Dec 13, 2018
pytest.ini Initial commit Dec 13, 2018
requirements.txt Initial commit Dec 13, 2018
setup.cfg Initial commit Dec 13, 2018
setup.py Initial commit Dec 13, 2018
tox.ini Initial commit Dec 13, 2018

README.rst

Calc

Documentation Status Updates

A small project used to introduce TDD

Setup

Please do the following steps to install the dependencies and make sure you are ready to go:

  1. Clone this repository
  2. Install requirements

pip install -r requirements/dev.txt

  1. Check your setup

Check that pytest is installed properly:

py.test -svv

This command should show a message about the number of tests passed (there should be no failures).

  1. Fetch tags from the remote

git fetch --all --tags --prune

  1. (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:

  • step-1-adding-two-numbers
  • step-5-multiply-two-numbers
  • step-6-refactoring
  • step-8-multiply-by-zero
  • meteoritestats-class-added

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:

  • patch-with-context-manager
  • patch-with-function-decorator

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

You can’t perform that action at this time.