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:
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¶
Bases:
DoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- path = 'evennia.contrib.rpg.buffs.tests.BuffableObject'¶
- typename = 'BuffableObject'¶
- class evennia.contrib.rpg.buffs.tests.TestBuffsAndHandler(methodName='runTest')[source]¶
Bases:
EvenniaTestThis tests a number of things about buffs.
- test_details()[source]¶
tests that buff details like name and flavor are correct; also test modifier viewing