Summarize a pytest failure
Extract the failed pytest node id, assertion or exception, relevant Python frames, likely cause category, focused single-test rerun command, and practical repair steps from a pytest failure log.
$0.003 USDC POST /v1/pytest-summary
developer-tools · pytest · python · testing
Use it for
- summarize pytest failure
- parse pytest log
- rerun failed Python test
Example input
{
"log": "FAILED tests/test_math.py::test_total - AssertionError: assert 1 == 2",
"step_name": "pytest"
}Example output
{
"success": true,
"framework": "pytest",
"diagnosis": {
"failure_type": "pytest",
"error_message": "AssertionError: assert 1 == 2",
"stack_trace": [
"tests/test_math.py:8: AssertionError"
],
"suggested_fix_category": "test_failure",
"confidence": 0.96
},
"rerun_command": "pytest -q tests/test_math.py::test_total"
}Call it
Use an x402 v2 payment-aware client from the quickstart. An unpaid request safely returns the exact payment challenge before any work runs.