mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +00:00
change to using unittest instead of py.test since it comes with the standard library
This commit is contained in:
parent
041c04db18
commit
ca6f1a5b55
@ -1,6 +1,13 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
from gilded_rose import Item, update_quality
|
from gilded_rose import Item, update_quality
|
||||||
|
|
||||||
def test_foo():
|
class GildedRoseTest(unittest.TestCase):
|
||||||
items = [Item("foo", 0, 0)]
|
def test_foo(self):
|
||||||
update_quality(items)
|
items = [Item("foo", 0, 0)]
|
||||||
assert "fixme" == items[0].name
|
update_quality(items)
|
||||||
|
self.assertEquals("fixme", items[0].name)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
unittest.main()
|
||||||
Loading…
Reference in New Issue
Block a user