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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_agent_saga-2.1.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_agent_saga-2.1.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file pytest_agent_saga-2.1.2.tar.gz.

File metadata

  • Download URL: pytest_agent_saga-2.1.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pytest_agent_saga-2.1.2.tar.gz
Algorithm Hash digest
SHA256 6899250a0f266da704e3f3f1c30c3e70e816e3f8f5ad186182da93ec8f522bb5
MD5 8ee3b139b2b44455aab8771b64b1067b
BLAKE2b-256 126957413f92a13570eabdd3fef5e4b62293b13ac2de9b7273ce65f89512d00e

See more details on using hashes here.

File details

Details for the file pytest_agent_saga-2.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_agent_saga-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6a9f8d12f0ac85565e5d874dcdd1b91b575e87c4e3295fd875d519b56393661d
MD5 f8ec4fc6a44d23c8e83c650cee0e13e5
BLAKE2b-256 a6942c68a3d410b26eedc4c4c23f6bd2d65418ae6499258fa40f5acdf90bd8c4

See more details on using hashes here.

Release history Release notifications | RSS feed

2.3.11

2 files

2.3.10

2 files

2.3.9

2 files

2.3.8

2 files

2.3.7

2 files

2.3.6

2 files

2.3.5

2 files

2.3.4

2 files

2.3.3

2 files

2.3.2

2 files

2.3.1

2 files

2.3.0

2 files

2.2.0

2 files

This release

2.1.2 This release

2 files

2.1.1

2 files

2.1.0

2 files

2.0.9

2 files

2.0.8

2 files

2.0.7

2 files

2.0.6

2 files

2.0.5

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.5.1

2 files

1.5.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.7.0

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.9

2 files

0.5.8

2 files

0.5.6

2 files

0.5.5

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.4

2 files

0.2.3

2 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