mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-08 03:01:24 +00:00
t introduce verify all combs
This commit is contained in:
parent
aef45792ff
commit
2658736f1a
@ -1,3 +1,3 @@
|
||||
foo, -1, 0
|
||||
Aged Brie, -1, 2
|
||||
Backstage passes to a TAFKAL80ETC concert, -1, 0
|
||||
args: ('foo',) => 'foo, -1, 0'
|
||||
args: ('Aged Brie',) => 'Aged Brie, -1, 2'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert',) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
from copy import deepcopy
|
||||
import unittest
|
||||
|
||||
from gilded_rose import Item, GildedRose
|
||||
from approvaltests.approvals import verify
|
||||
from approvaltests.combination_approvals import verify_all_combinations
|
||||
|
||||
|
||||
class GildedRoseTest(unittest.TestCase):
|
||||
@ -10,7 +10,6 @@ class GildedRoseTest(unittest.TestCase):
|
||||
item = Item(name, 0, 0)
|
||||
gilded_rose = GildedRose([item])
|
||||
gilded_rose.update_quality()
|
||||
|
||||
return str(item)
|
||||
|
||||
def test_foo(self):
|
||||
@ -20,11 +19,13 @@ class GildedRoseTest(unittest.TestCase):
|
||||
"Backstage passes to a TAFKAL80ETC concert",
|
||||
]
|
||||
|
||||
to_approve = []
|
||||
for item in input_vals:
|
||||
to_approve.append(self.do_stuff(item))
|
||||
verify_all_combinations(self.do_stuff, [input_vals])
|
||||
|
||||
verify("\n".join(to_approve))
|
||||
# to_approve = []
|
||||
# for item in input_vals:
|
||||
# to_approve.append(self.do_stuff(item))
|
||||
#
|
||||
# verify("\n".join(to_approve))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user