mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-04 09:11:39 +00:00
refactor: Abstract constant definitions
This commit is contained in:
parent
4f45b9ee35
commit
2df4ee7916
@ -1,6 +1,13 @@
|
|||||||
"""Gilded Rose Refactoring Kata."""
|
"""Gilded Rose Refactoring Kata."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
AGED_BRIE: str = "Aged Brie"
|
||||||
|
BACKSTAGE_PASSES: str = "Backstage passes"
|
||||||
|
CONJURED: str = "Conjured"
|
||||||
|
MAX_QUALITY: int = 50
|
||||||
|
MIN_QUALITY: int = 0
|
||||||
|
SULFURAS: str = "Sulfuras, Hand of Ragnaros"
|
||||||
|
SULFURAS_QUALITY: int = 80
|
||||||
|
|
||||||
class GildedRose:
|
class GildedRose:
|
||||||
"""Manages inventory quality updates for the Gilded Rose inn.
|
"""Manages inventory quality updates for the Gilded Rose inn.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user