providers.testing.InMemDtoKeyValueStore
In-memory KVStore provider for Pydantic model (DTO) data.
Usage
providers.testing.InMemDtoKeyValueStore()Methods
| Name | Description |
|---|---|
| __init__() | Initialize with DTO model type and optional storage settings. |
| construct() | Yield an in-memory DTO store instance. |
__init__()
Initialize with DTO model type and optional storage settings.
Usage
__init__(*, dto_model, key_prefix=DEFAULT_KV_PREFIX, backing_store=None)
construct()
Yield an in-memory DTO store instance.
Usage
construct(*, key_prefix=DEFAULT_KV_PREFIX, backing_store=None, dto_model=None)