The broken test is mysteriously working now

This commit is contained in:
Yohann D'ANELLO 2021-01-06 17:54:43 +01:00
parent d49c138257
commit 093c105120
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 1 additions and 6 deletions

View File

@ -155,7 +155,7 @@ class Game:
# Wait for the direction of the friendly entity # Wait for the direction of the friendly entity
self.waiting_for_friendly_key = True self.waiting_for_friendly_key = True
elif key == KeyValues.WAIT: elif key == KeyValues.WAIT:
self.map.tick() self.map.tick(self.player)
elif key == KeyValues.LADDER: elif key == KeyValues.LADDER:
self.handle_ladder() self.handle_ladder()

View File

@ -46,11 +46,6 @@ class TestGame(unittest.TestCase):
bomb.hold(self.game.player) bomb.hold(self.game.player)
sword.hold(self.game.player) sword.hold(self.game.player)
for entity in self.game.map.entities:
# trumpets change order when they are loaded, this breaks the test.
if entity.name == 'trumpet':
self.game.map.remove_entity(entity)
# Ensure that merchants can be saved # Ensure that merchants can be saved
merchant = Merchant() merchant = Merchant()
merchant.move(3, 6) merchant.move(3, 6)