mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-25 11:21:44 +00:00
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.
17 lines
367 B
Python
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()
|