Metadata-Version: 2.5
Name: secret-kernel-testing
Version: 0.1.0a10
Summary: Shared provider contract tests for Secret Kernel providers.
Project-URL: Homepage, https://secret-kernel.foggia.zip/?code=py
Project-URL: Documentation, https://secret-kernel.foggia.zip/?code=py
Project-URL: Source, https://github.com/brunnofoggia/secret-kernel-py/tree/main/packages/testing
Project-URL: Changelog, https://secret-kernel.foggia.zip/?code=py#changelog
Project-URL: Issues, https://github.com/brunnofoggia/secret-kernel-py/issues
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: secret-kernel-contracts==0.1.0a10
Requires-Dist: secret-kernel-core==0.1.0a10
Description-Content-Type: text/markdown

# secret-kernel-testing

Shared provider contract tests for Secret Kernel provider authors.

```bash
uv add --dev secret-kernel-testing
```

## Usage

```python
from secret_kernel.provider_in_memory import (
    InMemoryProviderOptions,
    create_in_memory_client,
)
from secret_kernel.testing import assert_client_contract


async def test_in_memory_contract() -> None:
    await assert_client_contract(
        lambda options, secrets: create_in_memory_client(
            options, InMemoryProviderOptions(secrets=secrets)
        )
    )
```

`assert_client_contract` is a coroutine, so it runs from an async test — under pytest,
through a plugin such as `pytest-asyncio`.

The contract verifies decrypted reads, name resolution, shared parsing behavior and
missing-secret errors.

## Documentation

The normative public surface is in
[`docs/secret-kernel-api-reference.md`](https://github.com/brunnofoggia/secret-kernel-py/blob/main/docs/secret-kernel-api-reference.md).

## License

MIT
