a2a-source-edit: write tests/test_agent.py
This commit is contained in:
@@ -141,8 +141,8 @@ async def test_allowlisted_operation_enforcement(ctx, workspace):
|
||||
async def test_recovery_gating_requires_checks(ctx):
|
||||
agent = ProductionIncidentCommander()
|
||||
result = await agent.verify_recovery(ctx, incident_id="inc-004", observation_seconds=0)
|
||||
assert result.recovered is False
|
||||
assert result.checks[0].status == "fail"
|
||||
assert result["recovered"] is False
|
||||
assert result["checks"][0]["status"] == "fail"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
Reference in New Issue
Block a user