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

@ -7,6 +7,7 @@
adding line breaks in hook returns. (InspectorCaracal) adding line breaks in hook returns. (InspectorCaracal)
- [Fix][pull3446]: Use plural ('no apples') instead of singular ('no apple') in - [Fix][pull3446]: Use plural ('no apples') instead of singular ('no apple') in
`get_numbered_name` for better grammatical form (InspectorCaracal) `get_numbered_name` for better grammatical form (InspectorCaracal)
- Doc: Added Beginner Tutorial lessons for AI and Procedural dungeon (Griatch)
- Doc fixes (Griatch, InspectorCaracal) - Doc fixes (Griatch, InspectorCaracal)
[pull3421]: https://github.com/evennia/evennia/pull/3421 [pull3421]: https://github.com/evennia/evennia/pull/3421

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.assertNotEqual(self.start_room, new_room_north)
self.assertTrue(inherits_from(new_room_north, dungeon.EvAdventureDungeonRoom)) self.assertTrue(inherits_from(new_room_north, dungeon.EvAdventureDungeonRoom))
# check if Orchestrator was created # check if Dungeon Branch was created
orchestrator = new_room_north.db.dungeon_orchestrator branch = new_room_north.db.dungeon_branch
self.assertTrue(bool(orchestrator)) self.assertTrue(bool(branch))
self.assertTrue(orchestrator.key.startswith("dungeon_orchestrator_north_")) self.assertTrue(branch.key.startswith("dungeon_branch_north_"))
def test_different_start_directions(self): def test_different_start_directions(self):
# first go north, this should generate a new room # first go north, this should generate a new room