More work on tech demo area

This commit is contained in:
Griatch 2022-07-12 11:51:05 +02:00
parent 1ed7ffa095
commit afadb1001e
16 changed files with 275 additions and 252 deletions

View file

@ -19,8 +19,9 @@ class EvAdventureMixin:
def setUp(self):
super().setUp()
self.location = create.create_object(EvAdventureRoom, key="testroom")
self.character = create.create_object(EvAdventureCharacter, key="testchar",
location=self.location)
self.character = create.create_object(
EvAdventureCharacter, key="testchar", location=self.location
)
self.helmet = create.create_object(
EvAdventureObject,
key="helmet",

View file

@ -16,6 +16,7 @@ class EvAdventureTurnbasedCombatHandlerTest(EvAdventureMixin, BaseEvenniaTest):
Test the turn-based combat-handler implementation.
"""
maxDiff = None
@patch(
@ -52,10 +53,7 @@ class EvAdventureTurnbasedCombatHandlerTest(EvAdventureMixin, BaseEvenniaTest):
self.combathandler.register_action(self.combatant, action.key)
self.assertEqual(
self.combathandler.action_queue[self.combatant],
(action, (), {})
)
self.assertEqual(self.combathandler.action_queue[self.combatant], (action, (), {}))
action.use = MagicMock()