Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thavarshan/python-code-katas
๐งช The same series of short and repeatable programming challenges done in PHP, but this time in Python.
https://github.com/thavarshan/python-code-katas
code-katas python python-unittest
Last synced: about 1 month ago
JSON representation
๐งช The same series of short and repeatable programming challenges done in PHP, but this time in Python.
- Host: GitHub
- URL: https://github.com/thavarshan/python-code-katas
- Owner: Thavarshan
- License: mit
- Created: 2020-07-22T16:22:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T07:02:54.000Z (about 1 year ago)
- Last Synced: 2024-04-14T09:28:05.005Z (8 months ago)
- Topics: code-katas, python, python-unittest
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code Katas with Python Unittest
## Introduction
If martial artists use kata as a method for exercise and practice, what might be the equivalent for coders like us? Coding katas are short, repeatable programming challenges which are meant to exercise everything from your focus, to your workflow.
This was already done in PHPUnit which you can find [here](https://github.com/Thavarshan/phpunit-code-katas), so this time I'm doing it in Python.
## Katas
- Prime Factors
- Roman Numerals
- Bowling Game
- String Calculator
- Tennis Match
- FizzBuzz
- The Gilded Rose## Installation
### Prerequisites
To run this project, you must have Python 3.6 or higher installed.
Begin by cloning this repository to your machine, and installing all dependencies dependencies.
### Get Started
```bash
git clone [email protected]:Thavarshan/python-code-katas.git katas
cd katas && pip install -r requirements.txt
```## Testing
Just run Python unit test in the project root.
```bash
cd katas
python -m venv ./venv
source ./venv/bin/activate
python -m unittest discover tests -p '*_test.py'
```