Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_ontology_mapping

Tests reference — tests/knowledge_graph/test_ontology_mapping.py

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

Prose pending.

tests/knowledge_graph/test_ontology_mapping.py

source · 51 tests · 387 lines

Tests for knowledge_graph.ontology_mapping (the import 'cleaning' rules).

Covers: knowledge_graph.canonical_schema, knowledge_graph.ontology_mapping

Kind Name Line Description
class TestMapIntegrity 30
method TestMapIntegrity.test_every_target_is_a_canonical_label 31
method TestMapIntegrity.test_every_canonical_label_is_reachable_except_added_only 36
method TestMapIntegrity.test_folded_exemption_cannot_hide_a_forgotten_label 52
method TestMapIntegrity.test_folded_exemption_is_exactly_the_known_transitional_pair 63
method TestMapIntegrity.test_operational_events_import_at_full_fidelity 75
method TestMapIntegrity.test_conversation_labels_mapped 95
method TestMapIntegrity.test_thread_label_mapped 102
method TestMapIntegrity.test_duplicate_label_trees_converge 110
class TestResolveCanonicalLabel 122
method TestResolveCanonicalLabel.test_adopt_label 123
method TestResolveCanonicalLabel.test_converge_label 126
method TestResolveCanonicalLabel.test_synonyms_pointing_at_same_target_are_not_ambiguous 129
method TestResolveCanonicalLabel.test_unknown_label_ignored_in_favor_of_canonical 133
method TestResolveCanonicalLabel.test_two_distinct_targets_are_ambiguous 137
method TestResolveCanonicalLabel.test_unmapped_label 142
class TestMapNode 148
method TestMapNode.test_adopt_with_key 149
method TestMapNode.test_converge_code_function 155
method TestMapNode.test_volk_keyed_on_alias 162
method TestMapNode.test_component_keyed_on_id 167
method TestMapNode.test_portfolio_keyed_on_name 182
method TestMapNode.test_missing_key_is_reported_not_fabricated 187
method TestMapNode.test_blank_key_is_missing 192
method TestMapNode.test_unmapped_node 198
method TestMapNode.test_properties_are_copied_not_aliased 203
method TestMapNode.test_properties_carry_the_canonical_key_value 210
method TestMapNode.test_properties_carry_the_derived_key_value 219
class TestKeyDerivationAndFilters 226 The per-label key-derivation + quality filters the live dry-run demanded.
method TestKeyDerivationAndFilters.test_code_class_derives_id_from_file_path_and_name 229
method TestKeyDerivationAndFilters.test_code_function_qualname_includes_owning_class 234
method TestKeyDerivationAndFilters.test_native_function_uses_its_own_id_over_derivation 242
method TestKeyDerivationAndFilters.test_orphan_code_node_identifies_by_name 248
method TestKeyDerivationAndFilters.test_keyless_fact_identified_by_fact_id 254
method TestKeyDerivationAndFilters.test_keyless_spec_identified_by_spec_id 259
method TestKeyDerivationAndFilters.test_keyless_requirement_identified_by_req_id 264
method TestKeyDerivationAndFilters.test_project_without_slug_falls_back_to_name 269
class TestTierHEvents 275 Operational events & messages import at full fidelity (not churn).
method TestTierHEvents.test_cxp_packet_becomes_message_on_message_id 278
method TestTierHEvents.test_gateway_audit_event_keyed_on_entry_id 283
method TestTierHEvents.test_shapeless_event_derives_session_timestamp_id 288
method TestTierHEvents.test_event_without_session_uses_bare_timestamp 299
method TestTierHEvents.test_event_without_timestamp_is_missing_key 304
method TestTierHEvents.test_memory_uses_session_scoped_composite_key 309
method TestTierHEvents.test_memory_without_session_is_missing_key 314
method TestTierHEvents.test_run_converges_to_testrun_with_derived_key 319
method TestTierHEvents.test_design_module_keyed_on_name 324
method TestTierHEvents.test_bare_gateway_session_imports_on_session_id 329
method TestTierHEvents.test_work_session_keyed_on_id_when_no_session_id 339
method TestTierHEvents.test_session_without_any_identity_is_missing_key 345
class TestRelationshipMapping 351 Containment synonyms fold into DEFINES; every other edge is preserved.
method TestRelationshipMapping.test_containment_synonyms_converge_to_defines 354
method TestRelationshipMapping.test_distinct_edge_semantics_are_preserved 359
method TestRelationshipMapping.test_unknown_edge_passes_through 370
class TestThreadProvenance 374 Derived thread_id -> pipeline-run provenance (faithful, not fabricated).
method TestThreadProvenance.test_run_id_encodes_the_thread 377
method TestThreadProvenance.test_in_run_edge_name 380
method TestThreadProvenance.test_intent_is_not_a_thread_provenance_label 383