Orchestrata Ultimate › Tests › Reference › agents › test_hierarchy

Tests reference — tests/agents/test_hierarchy.py

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

Prose pending.

tests/agents/test_hierarchy.py

source · 41 tests · 403 lines

Covers: agents.constants, agents.hierarchy

Kind Name Line Description
function test_hierarchy_node_defaults 43
function test_hierarchy_node_to_dict_roundtrip 53
function test_hierarchy_error_message_and_agent 73
function test_add_root_returns_node_with_defaults 84
function test_add_root_idempotent_returns_existing 93
function test_add_child_under_known_parent 102
function test_add_child_missing_parent_raises 113
function test_add_child_duplicate_raises 119
function test_add_child_exceeds_max_depth 127
function test_default_max_depth_matches_constant 135
function test_add_child_with_real_prolog_allows_restart 145
function test_add_child_with_real_prolog_blocks_restart_advisory_only 152
function test_get_parent_variants 181
function test_get_children_ordering 188
function test_get_ancestors_from_leaf 194
function test_get_ancestors_root_returns_empty 199
function test_get_ancestors_unknown_returns_empty 203
function test_get_descendants_dfs 207
function test_get_descendants_unknown_returns_empty 219
function test_get_depth 223
function test_is_ancestor 231
function test_get_siblings 238
function test_get_subtree_and_get_node 246
function test_contains 254
function test_size_and_roots 259
function test_multiple_roots 264
function test_remove_child_removes_subtree 277
function test_remove_child_missing_parent 284
function test_remove_child_missing_child 290
function test_remove_child_not_direct_child 297
function test_remove_agent_removes_descendants 306
function test_remove_agent_nonexistent_is_noop 315
function test_remove_agent_root 323
function test_clear 328
function test_validate_tree_clean 339
function test_validate_tree_detects_orphan 343
function test_validate_tree_detects_depth_mismatch 353
function test_validate_tree_detects_missing_child_ref 362
function test_validate_tree_detects_exceeding_depth 370
function test_validate_tree_with_real_prolog_does_not_crash 380
function test_tree_can_reach_max_depth 395