evennia.contrib.base_systems.components.tests¶
-
class
evennia.contrib.base_systems.components.tests.
ComponentTestA
(host=None)[source]¶ Bases:
evennia.contrib.base_systems.components.component.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.
-
-
class
evennia.contrib.base_systems.components.tests.
ComponentTestB
(host=None)[source]¶ Bases:
evennia.contrib.base_systems.components.component.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.
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.
-
-
class
evennia.contrib.base_systems.components.tests.
RuntimeComponentTestC
(host=None)[source]¶ Bases:
evennia.contrib.base_systems.components.component.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.
-
-
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:
evennia.contrib.base_systems.components.holder.ComponentHolderMixin
,evennia.objects.objects.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
-
exception
DoesNotExist
¶ Bases:
evennia.objects.objects.DefaultCharacter.DoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
evennia.objects.objects.DefaultCharacter.MultipleObjectsReturned
-
path
= 'evennia.contrib.base_systems.components.tests.CharacterWithComponents'¶
-
typename
= 'CharacterWithComponents'¶
-
-
class
evennia.contrib.base_systems.components.tests.
TestComponents
(methodName='runTest')[source]¶ Bases:
evennia.utils.test_resources.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:
evennia.contrib.base_systems.components.holder.ComponentHolderMixin
,evennia.objects.objects.DefaultCharacter
-
exception
DoesNotExist
¶ Bases:
evennia.objects.objects.DefaultCharacter.DoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
evennia.objects.objects.DefaultCharacter.MultipleObjectsReturned
-
path
= 'evennia.contrib.base_systems.components.tests.CharWithSignal'¶
-
typename
= 'CharWithSignal'¶
-
exception
-
class
evennia.contrib.base_systems.components.tests.
ComponentWithSignal
(host=None)[source]¶ Bases:
evennia.contrib.base_systems.components.component.Component
-
name
= 'test_signal_a'¶
-