Metadata-Version: 2.5
Name: pytest-narrative-contracts
Version: 0.1.0a2
Summary: Pytest fixtures and reports for narrative-contracts
Project-URL: Repository, https://github.com/pablomate4b/narrative-contracts
Project-URL: Issues, https://github.com/pablomate4b/narrative-contracts/issues
Project-URL: Documentation, https://github.com/pablomate4b/narrative-contracts#readme
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Pytest
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Requires-Dist: narrative-contracts==0.1.0a2
Requires-Dist: pytest<10,>=8
Description-Content-Type: text/markdown

# pytest-narrative-contracts

Optional pytest integration for `narrative-contracts`, version `0.1.0a2`.

Install both packages from the repository root:

```sh
pip install -e . -e ./packages/pytest-narrative-contracts
```

The `narrative` fixture exposes `check(document, context, contracts, policy=None)` and
`audit(cases, contracts, detection=1.0, preservation=1.0, policy=None)`. Failures identify
the rule, status, surface and evidence. `--narrative-report=report.json` writes all reports,
including failed checks. Audit thresholds require both violation and preservation cases.

Pytest discovers this package through the `pytest11` entry point. The core library has
no pytest dependency. Serial JSON reports only; distributed report merging is not supported.

Alpha software; MIT license. General free-text truthfulness is outside its guarantees.
