evennia.contrib.tutorials.evadventure.tests.test_combat¶
Test EvAdventure combat.
-
class
evennia.contrib.tutorials.evadventure.tests.test_combat.
TestEvAdventureCombatBaseHandler
(methodName='runTest')[source]¶ Bases:
evennia.contrib.tutorials.evadventure.tests.test_combat._CombatTestBase
Test the base functionality of the base combat handler.
-
class
evennia.contrib.tutorials.evadventure.tests.test_combat.
TestCombatActionsBase
(methodName='runTest')[source]¶ Bases:
evennia.contrib.tutorials.evadventure.tests.test_combat._CombatTestBase
A class for testing all subclasses of CombatAction in combat_base.py
-
class
evennia.contrib.tutorials.evadventure.tests.test_combat.
EvAdventureTurnbasedCombatHandlerTest
(methodName='runTest')[source]¶ Bases:
evennia.contrib.tutorials.evadventure.tests.test_combat._CombatTestBase
Test methods on the turn-based combat handler and actions
-
maxDiff
= None¶
-
test_attack__success__kill
(mock_randint)[source]¶ Test that the combathandler is deleted once there are no more enemies
-
test_stunt_advantage__success
(mock_randint)[source]¶ Test so the advantage matrix is updated correctly
-
-
class
evennia.contrib.tutorials.evadventure.tests.test_combat.
TestEvAdventureTwitchCombatHandler
(methodName='runTest')[source]¶ Bases:
evennia.utils.test_resources.EvenniaCommandTestMixin
,evennia.contrib.tutorials.evadventure.tests.test_combat._CombatTestBase