Skip to main content

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)

Source distribution for pytest-kedge 0.1.1
File Size Uploaded
pytest_kedge-0.1.1.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-kedge 0.1.1
File Interpreter ABI Platform
pytest_kedge-0.1.1-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page