a2a-source-edit: write tests/test_agent.py

This commit is contained in:
a2a-cloud
2026-07-13 02:51:55 +00:00
parent 87c9a7362d
commit b954b916f4

View File

@@ -141,8 +141,8 @@ async def test_allowlisted_operation_enforcement(ctx, workspace):
async def test_recovery_gating_requires_checks(ctx): async def test_recovery_gating_requires_checks(ctx):
agent = ProductionIncidentCommander() agent = ProductionIncidentCommander()
result = await agent.verify_recovery(ctx, incident_id="inc-004", observation_seconds=0) result = await agent.verify_recovery(ctx, incident_id="inc-004", observation_seconds=0)
assert result.recovered is False assert result["recovered"] is False
assert result.checks[0].status == "fail" assert result["checks"][0]["status"] == "fail"
@pytest.mark.asyncio @pytest.mark.asyncio