Skip to main content

pytest-agent-saga

Official Pytest plugin for agent-saga — bringing deterministic replay verification, chaos injection testing, and WAL assertions to your AI agent test suite.

Installation

pip install pytest-agent-saga

Features & Fixtures

  • saga_wal: Isolated temporary file WAL fixture per test.
  • chaos_runner: Inject synthetic failures at step boundaries or run mutation testing over compensation handlers.
  • assert_saga_deterministic: Verify that a saga's forward and compensation execution matches deterministically across test runs.

Example

import pytest

async def test_order_saga(saga_wal, chaos_runner):
    # Run saga under chaos injection
    result = await chaos_runner.run(my_order_saga, fail_point=2)
    assert result.rolled_back is True
    assert "refund_payment" in result.compensations_executed

Metadata

Release files for pytest-agent-saga 2.3.11

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-agent-saga 2.3.11
File Size Uploaded Provenance Actions
pytest_agent_saga-2.3.11.tar.gz 2.2 kB Without provenance Details for pytest_agent_saga-2.3.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-agent-saga 2.3.11
File Interpreter ABI Platform Actions
pytest_agent_saga-2.3.11-py3-none-any.whl Python 3 none any Details for pytest_agent_saga-2.3.11-py3-none-any.whl

Total release size: 4.7 kB

Release files / pytest_agent_saga-2.3.11.tar.gz

Download URL pytest_agent_saga-2.3.11.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dd236e0668818a7b70ecf3f12043477692e115ccb401ec30c5ae87147445b40c
BLAKE2b-256 checksum
How to use checksums
8517931e5bff99a0899134af68b0203a6e6243b40cc632e70918fcf88099cf55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / pytest_agent_saga-2.3.11-py3-none-any.whl

Download URL pytest_agent_saga-2.3.11-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42ac55e061c46784454d3fffe9e3361e07586f99fbb0374ccc2395c93a229368
BLAKE2b-256 checksum
How to use checksums
236ca03024ff37fd1447af3c84c2fef1b728cdc9c4e788c74e64a7e6ad5c8856
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for pytest-agent-saga 2.3.11

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

2.3.11 This release

2 release files No provenance

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