providers.testing.InMemDtoKeyValueStore

In-memory KVStore provider for Pydantic model (DTO) data.

Usage

Source

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

Source

__init__(*, dto_model, key_prefix=DEFAULT_KV_PREFIX, backing_store=None)


construct()

Yield an in-memory DTO store instance.

Usage

Source

construct(*, key_prefix=DEFAULT_KV_PREFIX, backing_store=None, dto_model=None)