Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daneah/gilded-rose
This is a version of the Gilded Rose kata in Python that uses pytest for testing.
https://github.com/daneah/gilded-rose
gilded-rose kata python tdd
Last synced: 15 days ago
JSON representation
This is a version of the Gilded Rose kata in Python that uses pytest for testing.
- Host: GitHub
- URL: https://github.com/daneah/gilded-rose
- Owner: daneah
- License: mit
- Created: 2023-02-24T02:41:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-24T16:21:40.000Z (almost 2 years ago)
- Last Synced: 2024-11-19T03:15:59.129Z (3 months ago)
- Topics: gilded-rose, kata, python, tdd
- Language: Python
- Homepage: https://www.youtube.com/watch?v=8bZh5LMaSmE
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gilded Rose kata
This is a version of the Gilded Rose kata in Python that uses pytest for testing.
## Install dependencies
```shell
$ python -m pip install -r requirements.txt
```## Run tests
```shell
$ python -m pytest
```## Complexity
```shell
$ radon cc -s gilded_rose.py
gilded_rose.py
M 7:4 GildedRose.tick - C (18)
C 1:0 GildedRose - C (11)
M 2:4 GildedRose.__init__ - A (1)$ radon cc -s gilded_rose_refactored.py
gilded_rose_refactored.py
C 48:0 BackstagePasses - B (6)
M 49:4 BackstagePasses.tick - A (5)
C 18:0 Normal - A (4)
C 28:0 AgedBrie - A (4)
C 38:0 ConjuredManaCake - A (4)
M 19:4 Normal.tick - A (3)
M 29:4 AgedBrie.tick - A (3)
M 39:4 ConjuredManaCake.tick - A (3)
C 1:0 Item - A (2)
C 72:0 GildedRose - A (2)
M 2:4 Item.__init__ - A (1)
M 7:4 Item.quality - A (1)
M 11:4 Item.days_remaining - A (1)
M 14:4 Item.tick - A (1)
M 74:4 GildedRose.for_item - A (1)
M 78:4 GildedRose.class_for - A (1)
```