environment
Test environment documentation models.
Classes
class
HardwareInfo
(BaseModel)Hardware specification.
Attributes
| Name | Type | Description |
|---|---|---|
| cpu_cores | int | — |
| cpu_model | str | — |
| cpu_threads | int | — |
| ram_total_gb | float | — |
| storage_type | str | — |
Methods
to_dict(self) → dictConvert to JSON-serializable dictionary.
class
SoftwareInfo
(BaseModel)Software versions.
Attributes
| Name | Type | Description |
|---|---|---|
| context_fabric_version | str | — |
| numpy_version | str | — |
| psutil_version | str | — |
| python_version | str | — |
| text_fabric_version | str | — |
Methods
from_environment(cls) → SoftwareInfoCreate SoftwareInfo from the current environment.
Parameters
cls
to_dict(self) → dictConvert to JSON-serializable dictionary.
class
TestEnvironment
(BaseModel)Complete test environment documentation.
Attributes
| Name | Type | Description |
|---|---|---|
| architecture | str | — |
| hardware | HardwareInfo | — |
| os_name | str | — |
| os_version | str | — |
| software | SoftwareInfo | — |
| timestamp | datetime | — |
Methods
from_system(cls) → TestEnvironmentCreate TestEnvironment from the current system.
Parameters
cls
to_dict(self) → dictConvert to JSON-serializable dictionary.
to_json(self) → strSerialize to JSON string.