Orchestrata Ultimate › Tests › Reference › agents › test_hierarchy_real
Tests reference — tests/agents/test_hierarchy_real.py
Module of tests/agents, split out because the directory page would be too large.
Prose pending.
tests/agents/test_hierarchy_real.py
source · 28 tests · 261 lines
Real tests for agents.hierarchy — pure in-memory tree operations.
Covers: agents.hierarchy
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_hierarchy_node_to_dict |
14 | |
| function | test_add_root_idempotent |
34 | |
| function | test_add_child_and_parent |
44 | |
| function | test_add_child_missing_parent_raises |
54 | |
| function | test_add_child_duplicate_raises |
60 | |
| function | test_add_child_max_depth_exceeded |
68 | |
| function | test_remove_child |
78 | |
| function | test_remove_child_validation |
89 | |
| function | test_remove_agent |
101 | |
| function | test_remove_agent_missing_ignored |
112 | |
| function | test_remove_root_agent |
117 | |
| function | test_get_ancestors_and_depth |
124 | |
| function | test_get_descendants_bfs_order |
135 | |
| function | test_get_descendants_missing |
145 | |
| function | test_is_ancestor |
150 | |
| function | test_validate_tree_clean |
160 | |
| function | test_validate_tree_flags_orphan |
167 | |
| function | test_validate_tree_flags_depth_mismatch |
174 | |
| function | test_validate_tree_flags_missing_child_reference |
183 | |
| function | test_validate_tree_flags_depth_exceeded |
191 | |
| function | test_get_node_and_contains |
200 | |
| function | test_get_subtree |
209 | |
| function | test_get_roots_and_siblings |
218 | |
| function | test_clear |
230 | |
| function | test_get_children_missing |
237 | |
| function | test_get_parent_of_root |
242 | |
| function | test_add_child_with_prolog_bridge |
249 | |
| function | test_validate_tree_with_prolog |
256 |