Repository for Code Katas based on @pragdave's http://codekata.com/
- If you don't already have a virtualenv installed (or a virtual environment process), setup it up with help from the Python Packaging User Guide. In short, for Python <3.4, securely download get-pip.py and then execute the following (omit sudo if you can):
sudo python get-pip.py
sudo pip install -U setuptools
sudo pip install virtualenv- Now setup a virtual environment for this repository.
cd python-code-kata
virtualenv .
source bin/activate- (Optional) Install any additional libraries. Pytest is pretty awesome.
pip install -r requirements.txtPlace code to solve the Kata in kata_code.py and run test_kata.py with built-in unittest or pytest if installed in step 3.
cd 00_kata_template
python test_kata.pyor
cd 00_kata_template
py.test test_kata.pyRinse, repeat. See you at the user group!
pytest: Good Integration Practices
Python Guide: Testing Your Code