Fixed tests and reached 100% coverage

This commit is contained in:
Nicolas Margulies
2021-01-10 22:39:52 +01:00
parent 519504fc32
commit f05652d9b8
2 changed files with 2 additions and 15 deletions

View File

@ -49,6 +49,7 @@ class TestGame(unittest.TestCase):
# Add items in the inventory to check that it is well loaded
bomb.hold(self.game.player)
sword.hold(self.game.player)
sword.equip()
# Ensure that merchants can be saved
merchant = Merchant()
@ -708,6 +709,7 @@ class TestGame(unittest.TestCase):
self.assertIn(shield, self.game.player.inventory)
self.assertIn(helmet, self.game.player.inventory)
self.assertIn(chestplate, self.game.player.inventory)
self.game.display_actions(DisplayActions.REFRESH)
# Test rings
self.game.player.inventory.clear()