Orchestrata Ultimate › Tests › Reference › test_agents
Tests reference — tests/test_agents.py
Module of tests, split out because the directory page would be too large.
Prose pending.
tests/test_agents.py
source · 90 tests · 896 lines
Tests for orchestrata_ultimate.agents module.
Covers: agents.communication, agents.constants, agents.constraints, agents.exceptions, agents.hierarchy, agents.interfaces, agents.swarm.types, agents.types
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_task_status_values |
114 | |
| function | test_instance_status_values |
124 | |
| function | test_coordination_pattern_values |
133 | |
| function | test_pool_defaults |
146 | |
| function | test_task_defaults |
154 | |
| function | test_hierarchy_constants |
159 | |
| function | test_task_definition_defaults |
169 | |
| function | test_task_definition_round_trip |
181 | |
| function | test_task_definition_to_dict_has_required_keys |
204 | |
| function | test_task_result_success |
226 | |
| function | test_task_result_failure |
233 | |
| function | test_task_result_to_dict |
239 | |
| function | test_volk_instance_defaults |
258 | |
| function | test_volk_instance_is_active_ready |
265 | |
| function | test_volk_instance_is_active_busy |
270 | |
| function | test_volk_instance_is_not_active_terminated |
275 | |
| function | test_volk_instance_is_available |
280 | |
| function | test_volk_instance_round_trip |
287 | |
| function | test_pool_config_defaults |
311 | |
| function | test_pool_config_to_dict |
320 | |
| function | test_pool_status_to_dict |
328 | |
| function | test_consensus_result_approved |
351 | |
| function | test_consensus_result_not_approved_no_quorum |
363 | |
| function | test_consensus_result_not_approved_tie |
375 | |
| function | test_consensus_result_to_dict |
387 | |
| function | test_volk_runtime_error_base |
403 | |
| function | test_volk_spawn_error_attributes |
409 | |
| function | test_volk_terminate_error |
416 | |
| function | test_task_execution_error |
422 | |
| function | test_task_assignment_error |
429 | |
| function | test_task_cancellation_error |
435 | |
| function | test_pool_exhausted_error |
441 | |
| function | test_pool_scale_error |
447 | |
| function | test_coordination_error |
453 | |
| function | test_leader_election_error_inherits_coordination |
459 | |
| function | test_consensus_error_inherits_coordination |
465 | |
| function | test_prolog_bridge_error |
470 | |
| function | test_hierarchy_add_root |
481 | |
| function | test_hierarchy_add_child |
490 | |
| function | test_hierarchy_get_parent |
499 | |
| function | test_hierarchy_get_children |
504 | |
| function | test_hierarchy_get_depth |
511 | |
| function | test_hierarchy_get_ancestors |
517 | |
| function | test_hierarchy_get_descendants |
522 | |
| function | test_hierarchy_is_ancestor |
528 | |
| function | test_hierarchy_contains |
534 | |
| function | test_hierarchy_size |
539 | |
| function | test_hierarchy_get_roots |
543 | |
| function | test_hierarchy_get_siblings |
548 | |
| function | test_hierarchy_validate_tree_clean |
554 | |
| function | test_hierarchy_max_depth_enforced |
559 | |
| function | test_hierarchy_add_child_missing_parent |
568 | |
| function | test_hierarchy_add_child_duplicate |
574 | |
| function | test_hierarchy_remove_child |
582 | |
| function | test_hierarchy_remove_agent_with_descendants |
588 | |
| function | test_hierarchy_clear |
594 | |
| function | test_hierarchy_node_to_dict |
599 | |
| function | test_hierarchy_error_attributes |
617 | |
| function | test_constraints_valid_spawn |
628 | |
| function | test_constraints_spawn_no_alias |
641 | |
| function | test_constraints_spawn_cpu_exceeded |
648 | |
| function | test_constraints_spawn_memory_exceeded |
660 | |
| function | test_constraints_spawn_depth_exceeded |
672 | |
| function | test_constraints_validate_at_runtime |
685 | |
| function | test_constraints_check_resource_limits_within_bounds |
690 | |
| function | test_constraints_check_resource_limits_cpu_exceeded |
695 | |
| function | test_constraints_get_default_constraints |
700 | |
| function | test_constraint_result_has_violations |
706 | |
| function | test_constraint_dataclass_to_dict |
713 | |
| function | test_comm_can_communicate_parent_child |
732 | |
| function | test_comm_can_communicate_siblings |
737 | |
| function | test_comm_can_communicate_self |
741 | |
| function | test_comm_send_to_parent |
745 | |
| function | test_comm_send_to_parent_root_raises |
753 | |
| function | test_comm_send_to_child |
759 | |
| function | test_comm_send_to_child_not_child_raises |
767 | |
| function | test_comm_broadcast_to_children |
773 | |
| function | test_comm_receive_delivers_messages |
781 | |
| function | test_comm_peek_returns_count_before_receive |
791 | |
| function | test_comm_escalate_message |
801 | |
| function | test_comm_get_metrics |
808 | |
| function | test_comm_send_to_sibling |
818 | |
| function | test_comm_send_to_sibling_not_sibling_raises |
826 | |
| function | test_shard_result_defaults |
837 | |
| function | test_shard_result_success |
846 | |
| function | test_shard_result_failure |
858 | |
| function | test_i_volk_runtime_protocol_methods |
868 | |
| function | test_i_task_executor_protocol_methods |
881 | |
| function | test_i_volk_pool_protocol_methods |
887 | |
| function | test_i_volk_coordinator_protocol_methods |
893 |