From c94ad20d3811b80535521efa9c4470435b2f29f4 Mon Sep 17 00:00:00 2001 From: Koleh David Date: Thu, 6 Feb 2025 14:24:59 +1030 Subject: [PATCH] r hardcode 0 --- test_gilded_rose.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test_gilded_rose.py b/test_gilded_rose.py index b4afeaae..712a3263 100644 --- a/test_gilded_rose.py +++ b/test_gilded_rose.py @@ -7,21 +7,21 @@ from approvaltests.approvals import verify class GildedRoseTest(unittest.TestCase): def do_stuff(self, item): - thing = Item(item[0], item[1], item[2]) + thing = Item(item, 0, 0) gilded_rose = GildedRose([thing]) gilded_rose.update_quality() result = str(thing) return result def test_foo(self): - input_Vals = [ - ("foo", 0, 0), - ("Aged Brie", 0, 0), - ("Backstage passes to a TAFKAL80ETC concert", 0, 0), + input_vals = [ + "foo", + "Aged Brie", + "Backstage passes to a TAFKAL80ETC concert", ] to_approve = [] - for item in input_Vals: + for item in input_vals: to_approve.append(self.do_stuff(item)) verify("\n".join(to_approve))