mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-05 09:41:37 +00:00
26 lines
591 B
Python
26 lines
591 B
Python
import unittest
|
|
|
|
from gilded_rose import Item, GildedRose
|
|
from approvaltests.approvals import verify
|
|
|
|
|
|
class GildedRoseTest(unittest.TestCase):
|
|
def test_foo(self):
|
|
items = [
|
|
Item("foo", 0, 0),
|
|
Item("Aged Brie", 0, 0),
|
|
Item("Backstage passes to a TAFKAL80ETC concert", 0, 0),
|
|
]
|
|
gilded_rose = GildedRose(items)
|
|
gilded_rose.update_quality()
|
|
|
|
to_approve = []
|
|
for item in items:
|
|
to_approve.append(str(item))
|
|
|
|
verify("\n".join(to_approve))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|