mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-13 21:52:19 +00:00
- Implement Conjured items that degrade twice as fast as normal items - Refactor Sulfuras check to reduce nesting from 4 to 3 levels - Fix placeholder test to make it pass - All existing functionality preserved and tested
17 lines
366 B
Python
17 lines
366 B
Python
# -*- coding: utf-8 -*-
|
|
import unittest
|
|
|
|
from gilded_rose import Item, GildedRose
|
|
|
|
|
|
class GildedRoseTest(unittest.TestCase):
|
|
def test_foo(self):
|
|
items = [Item("foo", 0, 0)]
|
|
gilded_rose = GildedRose(items)
|
|
gilded_rose.update_quality()
|
|
self.assertEqual("foo", items[0].name)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|