pytest-kedge ⚓
I built this as a way to abstract tests for agentic workflows, currently it just creates basic x -> f(x) -should be-> y or x -> f(x) -should be-> Exception but its great to stop claude from mucking about
Installation
Using uv (recommended):
uv add pytest-kedge
Usage
Define your component or function, then create a TestSuite. pytest will find it and run it automatically.
from pytest_kedge import TestSuite, TestCase from my_app import add_numbers
math_tests = TestSuite(
target=add_numbers,
scenarios=[
TestCase(
name="happy_path",
input={"a": 1, "b": 2},
expected=3,
test_failure_message="Basic addition failed",
),
TestCase(
name="type_error",
input={"a": "1", "b": 2},
expected=TypeError,
test_failure_message="Did not catch string input",
),
],
)
Agent-Friendly Reporting
- Run pytest with the kedge flag to get a concise summary:
uv run pytest --kedge-summary
Output:
Kedge Agentic Summary FAILURES DETECTED:
❌ renders_correctly Reason: Kedge Scenario Failed: Footer mismatch SUCCESSES:
✅ smoke_test
Development & Testing Clone the repo.
Metadata
Release files for pytest-kedge 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_kedge-0.1.1.tar.gz | 15.1 kB | With provenance | Details for pytest_kedge-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_kedge-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pytest_kedge-0.1.1-py3-none-any.whl |
Total release size: 31.6 kB
Release files / pytest_kedge-0.1.1.tar.gz
| Download URL | pytest_kedge-0.1.1.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e7337a5111dc5df764b295b40aa6d3b9d9ab803999c9123ba7eb1ca299aee87
|
|
BLAKE2b-256 checksum How to use checksums |
293d4a462aed146cc1c99da9452554eb55a3659ea9943ddc48067443728f02e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 10, 2026.
Transparency logRelease files / pytest_kedge-0.1.1-py3-none-any.whl
| Download URL | pytest_kedge-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43168d0f79bf9e9a05533b8795f7678911d6211bebfae92315b9c8cd0a090b8f
|
|
BLAKE2b-256 checksum How to use checksums |
fabe7b04d97a68e03cc6fb36b94e23d1b29e69f3ddb746538208f4434cceed05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 10, 2026.
Transparency logSecurity for pytest-kedge 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pytest_kedge-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.