Orchestrata Ultimate › Tests › Reference › test_orchestrator
Tests reference — tests/test_orchestrator.py
Module of tests, split out because the directory page would be too large.
Prose pending.
tests/test_orchestrator.py
source · 91 tests · 866 lines
Tests for orchestrata_ultimate.orchestrator module.
Covers: orchestrator.ambiguity_resolver, orchestrator.fact_manager, orchestrator.intent_enums, orchestrator.intent_lifecycle, orchestrator.intent_results, orchestrator.intent_types, orchestrator.nlp, orchestrator.parameter_extractor, core.enums/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_intent_creation_defaults |
98 | |
| function | test_intent_creation_custom_fields |
106 | |
| function | test_intent_id_is_unique |
121 | |
| function | test_intent_is_not_expired_fresh |
127 | |
| function | test_intent_is_expired_zero_ttl |
132 | |
| function | test_intent_is_terminal_pending_is_not |
139 | |
| function | test_intent_is_terminal_completed |
144 | |
| function | test_intent_is_terminal_failed |
149 | |
| function | test_intent_is_terminal_cancelled |
154 | |
| function | test_intent_is_terminal_timed_out |
159 | |
| function | test_intent_is_valid_true_when_required_fields_set |
164 | |
| function | test_intent_hash_is_string |
169 | |
| function | test_intent_hash_same_content_same_hash |
176 | |
| function | test_intent_hash_different_content_different_hash |
182 | |
| function | test_intent_to_dict_contains_required_keys |
188 | |
| function | test_intent_from_dict_roundtrip |
198 | |
| function | test_intent_validate_required_fields_passes |
214 | |
| function | test_intent_to_prolog_returns_string |
221 | |
| function | test_intent_constraint_defaults |
233 | |
| function | test_intent_constraint_to_dict |
238 | |
| function | test_intent_constraint_from_dict |
246 | |
| function | test_intent_with_constraints |
258 | |
| function | test_intent_action_values_are_strings |
270 | |
| function | test_intent_target_values_are_strings |
278 | |
| function | test_intent_status_terminal_states |
285 | |
| function | test_intent_priority_ordering |
297 | |
| function | test_valid_transitions_pending_can_go_to_validated |
309 | |
| function | test_valid_transitions_pending_can_go_to_rejected |
313 | |
| function | test_valid_transitions_pending_can_be_cancelled |
317 | |
| function | test_valid_transitions_validated_goes_to_routing |
321 | |
| function | test_valid_transitions_completed_is_terminal |
325 | |
| function | test_valid_transitions_failed_is_terminal |
329 | |
| function | test_invalid_transition_error_stores_states |
333 | |
| function | test_invalid_transition_error_is_exception |
344 | |
| function | test_validation_result_is_valid_when_allowed |
354 | |
| function | test_validation_result_is_not_valid_when_denied |
359 | |
| function | test_validation_result_to_dict |
364 | |
| function | test_routing_result_is_routed_with_volks |
376 | |
| function | test_routing_result_is_not_routed_empty_volks |
383 | |
| function | test_routing_result_to_dict |
388 | |
| function | test_dispatch_result_success |
397 | |
| function | test_dispatch_result_failure |
408 | |
| function | test_tokenizer_tokenize_returns_tokens |
425 | |
| function | test_tokenizer_tokenize_excludes_whitespace |
431 | |
| function | test_tokenizer_tokenize_identifies_words |
438 | |
| function | test_tokenizer_tokenize_identifies_path |
446 | |
| function | test_tokenizer_tokenize_identifies_numbers |
453 | |
| function | test_tokenizer_tokenize_sentences |
460 | |
| function | test_tokenizer_get_token_types |
466 | |
| function | test_ner_recognize_returns_entities |
478 | |
| function | test_ner_recognize_file_path |
484 | |
| function | test_ner_recognize_url |
491 | |
| function | test_ner_recognize_agent_id |
498 | |
| function | test_ner_extract_by_type_file_path |
505 | |
| function | test_ner_extract_by_type_returns_list |
514 | |
| function | test_ner_recognize_duration |
520 | |
| function | test_context_aware_parser_parse_with_context |
532 | |
| function | test_context_aware_parser_has_context_references_true |
547 | |
| function | test_context_aware_parser_has_context_references_false |
552 | |
| function | test_parameter_extractor_extract_file_params |
564 | |
| function | test_parameter_extractor_extract_file_params_glob |
571 | |
| function | test_parameter_extractor_extract_numeric_params |
578 | |
| function | test_parameter_extractor_extract_constraint_params |
585 | |
| function | test_parameter_extractor_extract_boolean_params |
591 | |
| function | test_parameter_extractor_extract_all |
597 | |
| function | test_parameter_extractor_resolve_ambiguity |
605 | |
| function | test_parameter_extractor_extract_list_params |
614 | |
| function | test_fact_manager_register_fact_returns_id |
625 | |
| function | test_fact_manager_get_fact_after_register |
637 | |
| function | test_fact_manager_unregister_fact |
649 | |
| function | test_fact_manager_unregister_nonexistent_returns_false |
661 | |
| function | test_fact_manager_on_session_start |
667 | |
| function | test_fact_manager_on_session_end_clears_session_facts |
673 | |
| function | test_fact_manager_on_request_start_and_end |
687 | |
| function | test_fact_manager_get_session_facts |
699 | |
| function | test_fact_manager_get_facts_by_predicate |
718 | |
| function | test_fact_manager_get_stats |
734 | |
| function | test_fact_manager_cleanup_expired_returns_count |
740 | |
| function | test_ambiguity_candidate_creation |
752 | |
| function | test_ambiguity_candidate_to_dict |
762 | |
| function | test_ambiguity_result_creation |
769 | |
| function | test_ambiguity_resolver_detect_single_candidate |
779 | |
| function | test_ambiguity_resolver_detect_ambiguous |
788 | |
| function | test_ambiguity_resolver_resolve_with_context |
797 | |
| function | test_ambiguity_result_confidence_with_resolved |
809 | |
| function | test_ambiguity_result_confidence_without_resolved |
817 | |
| function | test_ambiguity_resolver_detect_ambiguity_no_candidates |
822 | |
| function | test_ambiguity_resolver_resolve_no_candidates |
830 | |
| function | test_ambiguity_resolver_score_candidates |
839 | |
| function | test_ambiguity_resolver_resolve_best_effort |
848 | |
| function | test_ambiguity_resolver_detect_after_scoring |
859 |