evennia.contrib.tutorials.evadventure.tests.test_combat¶
Test EvAdventure combat.
- class evennia.contrib.tutorials.evadventure.tests.test_combat.TestEvAdventureCombatBaseHandler(methodName='runTest')[source]¶
Bases:
_CombatTestBaseTest the base functionality of the base combat handler.
- class evennia.contrib.tutorials.evadventure.tests.test_combat.TestCombatActionsBase(methodName='runTest')[source]¶
Bases:
_CombatTestBaseA class for testing all subclasses of CombatAction in combat_base.py
- class evennia.contrib.tutorials.evadventure.tests.test_combat.EvAdventureTurnbasedCombatHandlerTest(methodName='runTest')[source]¶
Bases:
_CombatTestBaseTest 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:
EvenniaCommandTestMixin,_CombatTestBase