More work on tech demo area
This commit is contained in:
parent
1ed7ffa095
commit
afadb1001e
16 changed files with 275 additions and 252 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue