mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-11 04:31:21 +00:00
r hardcode 0
This commit is contained in:
parent
c61cc3e39d
commit
c94ad20d38
@ -7,21 +7,21 @@ from approvaltests.approvals import verify
|
|||||||
|
|
||||||
class GildedRoseTest(unittest.TestCase):
|
class GildedRoseTest(unittest.TestCase):
|
||||||
def do_stuff(self, item):
|
def do_stuff(self, item):
|
||||||
thing = Item(item[0], item[1], item[2])
|
thing = Item(item, 0, 0)
|
||||||
gilded_rose = GildedRose([thing])
|
gilded_rose = GildedRose([thing])
|
||||||
gilded_rose.update_quality()
|
gilded_rose.update_quality()
|
||||||
result = str(thing)
|
result = str(thing)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def test_foo(self):
|
def test_foo(self):
|
||||||
input_Vals = [
|
input_vals = [
|
||||||
("foo", 0, 0),
|
"foo",
|
||||||
("Aged Brie", 0, 0),
|
"Aged Brie",
|
||||||
("Backstage passes to a TAFKAL80ETC concert", 0, 0),
|
"Backstage passes to a TAFKAL80ETC concert",
|
||||||
]
|
]
|
||||||
|
|
||||||
to_approve = []
|
to_approve = []
|
||||||
for item in input_Vals:
|
for item in input_vals:
|
||||||
to_approve.append(self.do_stuff(item))
|
to_approve.append(self.do_stuff(item))
|
||||||
|
|
||||||
verify("\n".join(to_approve))
|
verify("\n".join(to_approve))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user