GildedRose-Refactoring-Kata/python/test_gilded_rose.py
Daniel Vu 0c5f5dca75 Adds support for conjured items
To avoid the goblin one-shotting me, I've extended his/her/their class
instead so we could add a `conjured` attribute. A decision was made to
fix the tests as as and add test coverage in future commits, for the
sake of treating this as a short exercise that shouldn't take more than
a couple of hours.
2021-04-05 15:21:07 -04:00

17 lines
367 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.assertEquals("foo", items[0].name)
if __name__ == '__main__':
unittest.main()