Some translations were missing concerning sunflowers, fixes #44

This commit is contained in:
Yohann D'ANELLO
2020-12-12 17:39:12 +01:00
parent 73e1fac89a
commit 288a6ac2c9
8 changed files with 98 additions and 42 deletions

View File

@ -496,8 +496,8 @@ class TestGame(unittest.TestCase):
self.assertEqual(self.game.state, GameMode.PLAY)
self.assertTrue(self.game.logs.messages)
# Ensure that the message is a good message
self.assertIn(self.game.logs.messages[1][21:],
Sunflower.dialogue_option)
self.assertIn(self.game.logs.messages[1][16:],
Sunflower().dialogue_option)
# Test all directions to detect the friendly entity
self.game.player.move(3, 6)
@ -547,7 +547,7 @@ class TestGame(unittest.TestCase):
# Buy the second item by clicking on it
item = self.game.store_menu.validate()
self.assertIn(item, merchant.inventory)
self.game.display_actions(DisplayActions.MOUSE, 8, 25)
self.game.display_actions(DisplayActions.MOUSE, 7, 25)
self.game.handle_key_pressed(KeyValues.ENTER)
self.assertIn(item, self.game.player.inventory)
self.assertNotIn(item, merchant.inventory)