From 48318a91feffa98f95940d6b0d32fbd02547acf0 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 11 Dec 2020 21:18:50 +0100 Subject: [PATCH] Give more hazels to the player when testing the interaction with merchants --- squirrelbattle/tests/game_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/squirrelbattle/tests/game_test.py b/squirrelbattle/tests/game_test.py index 77b63c3..27c8ca8 100644 --- a/squirrelbattle/tests/game_test.py +++ b/squirrelbattle/tests/game_test.py @@ -540,6 +540,8 @@ class TestGame(unittest.TestCase): self.game.handle_key_pressed(KeyValues.UP) self.assertEqual(self.game.store_menu.position, 1) + self.game.player.hazel = 0x7ffff42ff + # The second item is not a heart merchant.inventory[1] = Sword() # Buy the second item by clicking on it