Fix unit tests

This commit is contained in:
Griatch 2024-03-24 15:41:16 +01:00
parent b5571fb5fd
commit 1f5fe9f1c3
2 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,5 @@
"""
Test Dungeon orchestrator / procedurally generated dungeon rooms.
Test Dungeon branch / procedurally generated dungeon rooms.
"""
@ -73,10 +73,10 @@ class TestDungeon(EvAdventureMixin, BaseEvenniaTest):
self.assertNotEqual(self.start_room, new_room_north)
self.assertTrue(inherits_from(new_room_north, dungeon.EvAdventureDungeonRoom))
# check if Orchestrator was created
orchestrator = new_room_north.db.dungeon_orchestrator
self.assertTrue(bool(orchestrator))
self.assertTrue(orchestrator.key.startswith("dungeon_orchestrator_north_"))
# check if Dungeon Branch was created
branch = new_room_north.db.dungeon_branch
self.assertTrue(bool(branch))
self.assertTrue(branch.key.startswith("dungeon_branch_north_"))
def test_different_start_directions(self):
# first go north, this should generate a new room