Give more hazels to the player when testing the interaction with merchants

This commit is contained in:
Yohann D'ANELLO 2020-12-11 21:18:50 +01:00
parent 777668848e
commit 48318a91fe
1 changed files with 2 additions and 0 deletions

View File

@ -540,6 +540,8 @@ class TestGame(unittest.TestCase):
self.game.handle_key_pressed(KeyValues.UP) self.game.handle_key_pressed(KeyValues.UP)
self.assertEqual(self.game.store_menu.position, 1) self.assertEqual(self.game.store_menu.position, 1)
self.game.player.hazel = 0x7ffff42ff
# The second item is not a heart # The second item is not a heart
merchant.inventory[1] = Sword() merchant.inventory[1] = Sword()
# Buy the second item by clicking on it # Buy the second item by clicking on it