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