We can now buy items to merchants, closes #47

This commit is contained in:
Yohann D'ANELLO
2020-12-18 01:05:50 +01:00
parent a5890a341d
commit 9a556ba669
5 changed files with 27 additions and 16 deletions

View File

@ -579,7 +579,8 @@ class TestGame(unittest.TestCase):
self.game.handle_key_pressed(KeyValues.ENTER)
self.assertNotIn(item, self.game.player.inventory)
self.assertIn(item, merchant.inventory)
self.assertEqual(self.game.message, _("You do not have enough money"))
self.assertEqual(self.game.message,
_("The buyer does not have enough money"))
self.game.handle_key_pressed(KeyValues.ENTER)
# Exit the menu