Orchestrata Ultimate › Tests › Reference › agents › test_lifecycle

Tests reference — tests/agents/test_lifecycle.py

Module of tests/agents, split out because the directory page would be too large.

Prose pending.

tests/agents/test_lifecycle.py

source · 30 tests · 431 lines

Covers: agents.constraints, agents.hierarchy, agents.lifecycle, agents.runtime, agents.types, agents.volk_registry

Kind Name Line Description
class TestLifespanType 115
method TestLifespanType.test_values 116
class TestLifecycleState 127
method TestLifecycleState.test_to_dict_includes_all_fields 128
class TestLifecycleError 152
method TestLifecycleError.test_error_captures_agent_id 153
method TestLifecycleError.test_error_default_agent_id 158
class TestConstruction 168
method TestConstruction.test_defaults_for_missing_args 169
class TestSpawnStubPath 184
method TestSpawnStubPath.test_spawn_creates_stub_instance 186
method TestSpawnStubPath.test_spawn_adds_root_when_no_parent 196
method TestSpawnStubPath.test_spawn_tracks_lifecycle_state 202
method TestSpawnStubPath.test_spawn_default_lifespan_session_bound 212
method TestSpawnStubPath.test_spawn_count_increments 218
method TestSpawnStubPath.test_spawn_rejected_by_constraints 224
method TestSpawnStubPath.test_spawn_rejected_for_excessive_cpu 231
class TestSpawnWithRealRuntime 244
method TestSpawnWithRealRuntime.test_spawn_uses_runtime 246
method TestSpawnWithRealRuntime.test_spawn_with_parent_adds_child 253
method TestSpawnWithRealRuntime.test_spawn_with_unknown_parent_rolls_back 262
class TestTerminate 279
method TestTerminate.test_terminate_removes_from_hierarchy_and_state 281
method TestTerminate.test_terminate_cascades_to_children 289
method TestTerminate.test_terminate_count_increments 303
method TestTerminate.test_terminate_unknown_returns_true 310
method TestTerminate.test_terminate_swallows_runtime_errors 315
method TestTerminate.test_terminate_real_runtime 332
class TestCheckLifespan 344
method TestCheckLifespan.test_unknown_agent_returns_false 346
method TestCheckLifespan.test_no_ttl_is_always_valid 350
method TestCheckLifespan.test_ttl_not_expired_returns_true 355
method TestCheckLifespan.test_ttl_expired_returns_false 362
class TestHandleFailure 377
method TestHandleFailure.test_failure_updates_state_and_error 379
method TestHandleFailure.test_failure_unknown_is_noop 387
method TestHandleFailure.test_failure_with_parent_notification 392
class TestStateAccessors 408
method TestStateAccessors.test_get_all_states_returns_copy 410
method TestStateAccessors.test_active_count_counts_only_ready_and_busy 421