Metadata-Version: 2.5
Name: render-lab-test-utils
Version: 0.1.0
Summary: Registration-free test contexts for Render tasks
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: render==1.0.1
Description-Content-Type: text/markdown

# render-lab-test-utils

Registration-free test contexts for `render==1.0.1`. No credentials or network.

```python
from render_lab_test_utils import fake_ctx, local_ctx

ctx = fake_ctx()  # Any unexpected ctx.run fails loudly.
# await some_impl(ctx, input, deps=fakes)

ctx = local_ctx()  # Execute task.func(ctx, ...) recursively in this process.
# await ctx.run(composed_task, input)
```

`fake_ctx(override)` accepts a context stub implementing async `run`. This replaces
TypeScript's partial-object override with Python's structural TaskContext protocol.
`local_ctx` supports synchronous and asynchronous task bodies and keyword inputs.
It checks wiring and results; it does not prove durable dispatch, retries, or timeouts.

## Installation

```sh
pip install render-lab-test-utils==0.1.0
```
