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
|
||||
|
||||
def test_foo():
|
||||
class GildedRoseTest(unittest.TestCase):
|
||||
def test_foo(self):
|
||||
items = [Item("foo", 0, 0)]
|
||||
update_quality(items)
|
||||
assert "fixme" == items[0].name
|
||||
self.assertEquals("fixme", items[0].name)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Reference in New Issue
Block a user