evennia.contrib.base_systems.components.tests¶
- class evennia.contrib.base_systems.components.tests.ComponentTestA(host=None)[source]¶
Bases:
Component- name = 'test_a'¶
- my_int¶
Component Attribute Descriptor. Allows you to set attributes related to a component on the class. It uses AttributeProperty under the hood but prefixes the key with the component name.
- my_list¶
Component Attribute Descriptor. Allows you to set attributes related to a component on the class. It uses AttributeProperty under the hood but prefixes the key with the component name.
- host¶
- class evennia.contrib.base_systems.components.tests.ShadowedComponentTestA(host=None)[source]¶
Bases:
ComponentTestA- name = 'shadowed_test_a'¶
- slot = 'ic_a'¶
- host¶
- class evennia.contrib.base_systems.components.tests.InheritedComponentTestA(host=None)[source]¶
Bases:
ComponentTestA- name = 'inherited_test_a'¶
- slot = 'ic_a'¶
- my_other_int¶
Component Attribute Descriptor. Allows you to set attributes related to a component on the class. It uses AttributeProperty under the hood but prefixes the key with the component name.
- host¶
- class evennia.contrib.base_systems.components.tests.ReplacementComponentTestA(host=None)[source]¶
Bases:
InheritedComponentTestA- name = 'replacement_inherited_test_a'¶
- slot = 'ic_a'¶
- replacement_field¶
Component Attribute Descriptor. Allows you to set attributes related to a component on the class. It uses AttributeProperty under the hood but prefixes the key with the component name.
- host¶
- class evennia.contrib.base_systems.components.tests.ComponentTestB(host=None)[source]¶
Bases:
Component- name = 'test_b'¶
- my_int¶
Component Attribute Descriptor. Allows you to set attributes related to a component on the class. It uses AttributeProperty under the hood but prefixes the key with the component name.
- my_list¶
Component Attribute Descriptor. Allows you to set attributes related to a component on the class. It uses AttributeProperty under the hood but prefixes the key with the component name.
- default_tag¶
Component Tags Descriptor. Allows you to set Tags related to a component on the class. The tags are set with a prefixed category, so it can support multiple tags or enforce a single one.
Default value of a tag is added when the component is registered. Tags are removed if the component itself is removed.
- single_tag¶
Component Tags Descriptor. Allows you to set Tags related to a component on the class. The tags are set with a prefixed category, so it can support multiple tags or enforce a single one.
Default value of a tag is added when the component is registered. Tags are removed if the component itself is removed.
- multiple_tags¶
Component Tags Descriptor. Allows you to set Tags related to a component on the class. The tags are set with a prefixed category, so it can support multiple tags or enforce a single one.
Default value of a tag is added when the component is registered. Tags are removed if the component itself is removed.
- default_single_tag¶
Component Tags Descriptor. Allows you to set Tags related to a component on the class. The tags are set with a prefixed category, so it can support multiple tags or enforce a single one.
Default value of a tag is added when the component is registered. Tags are removed if the component itself is removed.
- host¶
- class evennia.contrib.base_systems.components.tests.RuntimeComponentTestC(host=None)[source]¶
Bases:
Component- name = 'test_c'¶
- my_int¶
Component Attribute Descriptor. Allows you to set attributes related to a component on the class. It uses AttributeProperty under the hood but prefixes the key with the component name.
- my_dict¶
Component Attribute Descriptor. Allows you to set attributes related to a component on the class. It uses AttributeProperty under the hood but prefixes the key with the component name.
- added_tag¶
Component Tags Descriptor. Allows you to set Tags related to a component on the class. The tags are set with a prefixed category, so it can support multiple tags or enforce a single one.
Default value of a tag is added when the component is registered. Tags are removed if the component itself is removed.
- host¶
- class evennia.contrib.base_systems.components.tests.ComponentTestD(host=None)[source]¶
Bases:
Component- name = 'test_d'¶
- mixed_in¶
Component Attribute Descriptor. Allows you to set attributes related to a component on the class. It uses AttributeProperty under the hood but prefixes the key with the component name.
- host¶
- class evennia.contrib.base_systems.components.tests.ShadowedCharacterMixin[source]¶
Bases:
object- ic_a¶
This allows you to register a component on a typeclass. Components registered with this property are automatically added to any instance of this typeclass.
Defaults can be overridden for this typeclass by passing kwargs
- class evennia.contrib.base_systems.components.tests.CharacterMixinWithComponents[source]¶
Bases:
object- ic_a¶
This allows you to register a component on a typeclass. Components registered with this property are automatically added to any instance of this typeclass.
Defaults can be overridden for this typeclass by passing kwargs
- test_d¶
This allows you to register a component on a typeclass. Components registered with this property are automatically added to any instance of this typeclass.
Defaults can be overridden for this typeclass by passing kwargs
- class evennia.contrib.base_systems.components.tests.CharacterWithComponents(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:
ComponentHolderMixin,ShadowedCharacterMixin,CharacterMixinWithComponents,DefaultCharacter- test_a¶
This allows you to register a component on a typeclass. Components registered with this property are automatically added to any instance of this typeclass.
Defaults can be overridden for this typeclass by passing kwargs
- test_b¶
This allows you to register a component on a typeclass. Components registered with this property are automatically added to any instance of this typeclass.
Defaults can be overridden for this typeclass by passing kwargs
- ic_a¶
This allows you to register a component on a typeclass. Components registered with this property are automatically added to any instance of this typeclass.
Defaults can be overridden for this typeclass by passing kwargs
- exception DoesNotExist¶
Bases:
DoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- path = 'evennia.contrib.base_systems.components.tests.CharacterWithComponents'¶
- typename = 'CharacterWithComponents'¶
- class evennia.contrib.base_systems.components.tests.InheritedTCWithComponents(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:
CharacterWithComponents- test_c¶
This allows you to register a component on a typeclass. Components registered with this property are automatically added to any instance of this typeclass.
Defaults can be overridden for this typeclass by passing kwargs
- exception DoesNotExist¶
Bases:
DoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- path = 'evennia.contrib.base_systems.components.tests.InheritedTCWithComponents'¶
- typename = 'InheritedTCWithComponents'¶
- class evennia.contrib.base_systems.components.tests.TestComponents(methodName='runTest')[source]¶
Bases:
EvenniaTest- character_typeclass¶
alias of
CharacterWithComponents
- class evennia.contrib.base_systems.components.tests.CharWithSignal(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:
ComponentHolderMixin,DefaultCharacter- exception DoesNotExist¶
Bases:
DoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- path = 'evennia.contrib.base_systems.components.tests.CharWithSignal'¶
- typename = 'CharWithSignal'¶
- class evennia.contrib.base_systems.components.tests.ComponentWithSignal(host=None)[source]¶
Bases:
Component- name = 'test_signal_a'¶
- host¶
- class evennia.contrib.base_systems.components.tests.TestComponentSignals(methodName='runTest')[source]¶
Bases:
BaseEvenniaTest