GithubHelp home page GithubHelp logo

calc's Introduction

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.

calc's People

Contributors

adasilva avatar lgiordani avatar

Watchers

 avatar  avatar  avatar

Forkers

malhotraguy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.