mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-07 10:41:56 +00:00
26 lines
630 B
Python
26 lines
630 B
Python
import unittest
|
|
|
|
from gilded_rose import Item, GildedRose
|
|
from approvaltests.combination_approvals import verify_all_combinations
|
|
|
|
|
|
class GildedRoseTest(unittest.TestCase):
|
|
def do_stuff(self, name, quality=0):
|
|
item = Item(name, 0, quality)
|
|
gilded_rose = GildedRose([item])
|
|
gilded_rose.update_quality()
|
|
return str(item)
|
|
|
|
def test_foo(self):
|
|
input_vals = [
|
|
"foo",
|
|
"Aged Brie",
|
|
"Backstage passes to a TAFKAL80ETC concert",
|
|
]
|
|
|
|
verify_all_combinations(self.do_stuff, [input_vals, [0]])
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|