evennia.contrib.rpg.buffs.tests¶
Tests for the buff system contrib
-
class
evennia.contrib.rpg.buffs.tests.
BuffableObject
(id, db_key, db_typeclass_path, db_date_created, db_lock_storage, db_account, db_sessid, db_location, db_home, db_destination, db_cmdset_storage)[source]¶ Bases:
evennia.objects.objects.DefaultObject
-
stat1
¶ An example of a way you can extend AttributeProperty to create properties that automatically check buffs for you.
-
at_init
()[source]¶ This is always called whenever this object is initiated – that is, whenever it its typeclass is cached from memory. This happens on-demand first time the object is used or activated in some way after being created but also after each server restart or reload.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶ Bases:
evennia.objects.objects.DefaultObject.MultipleObjectsReturned
-
path
= 'evennia.contrib.rpg.buffs.tests.BuffableObject'¶
-
typename
= 'BuffableObject'¶
-
-
class
evennia.contrib.rpg.buffs.tests.
TestBuffsAndHandler
(methodName='runTest')[source]¶ Bases:
evennia.utils.test_resources.EvenniaTest
This tests a number of things about buffs.
-
test_details
()[source]¶ tests that buff details like name and flavor are correct; also test modifier viewing
-
test_context_conditional
()[source]¶ tests to ensure context is passed to buffs, and also tests conditionals
-