bundle.testing.tools.references.entity¶
Attributes¶
Classes¶
An extension of the Data model that represents an entity with enhanced introspection |
|
An extension of the Data model that represents an entity with enhanced introspection |
|
An extension of the Data model that represents an entity with enhanced introspection |
|
An extension of the Data model that represents an entity with enhanced introspection |
|
An extension of the Data model that represents an entity with enhanced introspection |
Module Contents¶
- bundle.testing.tools.references.entity.JSON_ENCODERS¶
- bundle.testing.tools.references.entity.NAMESPACE¶
- bundle.testing.tools.references.entity.UNIQUE_GENERATOR_ACTIVE = True¶
- class bundle.testing.tools.references.entity.TestEntity(/, **data: Any)[source]¶
Bases:
bundle.core.EntityAn extension of the Data model that represents an entity with enhanced introspection and optional persistence capabilities. It tracks the entity’s creation time and can automatically save its state upon destruction if configured to do so.
- Properties:
class_name (str): The name of the entity’s class. age (int): The age of the entity in nanoseconds, calculated from its born_time.
- identifier: bundle.core.entity.Identifier = None¶
- class bundle.testing.tools.references.entity.NestedModel(/, **data: Any)[source]¶
Bases:
TestEntityAn extension of the Data model that represents an entity with enhanced introspection and optional persistence capabilities. It tracks the entity’s creation time and can automatically save its state upon destruction if configured to do so.
- Properties:
class_name (str): The name of the entity’s class. age (int): The age of the entity in nanoseconds, calculated from its born_time.
- timestamp: datetime.datetime = None¶
- model_config¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class bundle.testing.tools.references.entity.RecursiveModel(/, **data: Any)[source]¶
Bases:
TestEntityAn extension of the Data model that represents an entity with enhanced introspection and optional persistence capabilities. It tracks the entity’s creation time and can automatically save its state upon destruction if configured to do so.
- Properties:
class_name (str): The name of the entity’s class. age (int): The age of the entity in nanoseconds, calculated from its born_time.
- children: None | list[RecursiveModel] = None¶
- model_config¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class bundle.testing.tools.references.entity.TestComplexEntity(/, **data: Any)[source]¶
Bases:
TestEntityAn extension of the Data model that represents an entity with enhanced introspection and optional persistence capabilities. It tracks the entity’s creation time and can automatically save its state upon destruction if configured to do so.
- Properties:
class_name (str): The name of the entity’s class. age (int): The age of the entity in nanoseconds, calculated from its born_time.
- dict_complex_field: dict[str, pathlib.Path] = None¶
- nested_model: NestedModel = None¶
- nested_model_list: list[NestedModel] = None¶
- optional_nested_model: None | NestedModel = None¶
- recursive_model: RecursiveModel = None¶
- file_path: pathlib.Path = None¶
- model_config¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class bundle.testing.tools.references.entity.TestComplexEntityMultipleInheritance(/, **data: Any)[source]¶
Bases:
RecursiveModel,bundle.testing.tools.references.data.TestComplexDataAn extension of the Data model that represents an entity with enhanced introspection and optional persistence capabilities. It tracks the entity’s creation time and can automatically save its state upon destruction if configured to do so.
- Properties:
class_name (str): The name of the entity’s class. age (int): The age of the entity in nanoseconds, calculated from its born_time.