Fixed tests and reached 100% coverage
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user