This commit is contained in:
eichhornchen
2021-01-05 10:20:55 +01:00
parent c378eead74
commit 6341f39fb0
2 changed files with 11 additions and 12 deletions

View File

@ -41,9 +41,9 @@ class TestGame(unittest.TestCase):
bomb.hold(self.game.player)
sword.hold(self.game.player)
for entity in self.game.map.entities :
#trumpets change order when they are loaded, so it is unsuitable for simple testing
if entity.name == 'trumpet' :
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