Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_schema

Tests reference — tests/knowledge_graph/test_schema.py

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

Prose pending.

tests/knowledge_graph/test_schema.py

source · 13 tests · 169 lines

Tests for knowledge_graph.schema.

Covers: knowledge_graph.canonical_schema, knowledge_graph.schema, knowledge_graph.types_enums

Kind Name Line Description
function test_every_node_type_maps_to_a_real_label 151 No NodeType member may fall through to the "Node" default.
class TestKnowledgeGraphSchema 34
method TestKnowledgeGraphSchema.test_labels_defined 35
method TestKnowledgeGraphSchema.test_constraints_defined 41
method TestKnowledgeGraphSchema.test_indexes_defined 45
method TestKnowledgeGraphSchema.test_fulltext_indexes 51
method TestKnowledgeGraphSchema.test_get_all_ddl 55
method TestKnowledgeGraphSchema.test_get_node_label 59
method TestKnowledgeGraphSchema.test_get_unified_ddl_canon_first_then_lookup_layer 64 The unified list opens with the SPEC-106 canon and contains the
method TestKnowledgeGraphSchema.test_get_unified_ddl_extra_appended_and_deduped 81
method TestKnowledgeGraphSchema.test_w5_semantic_labels_defined 93
method TestKnowledgeGraphSchema.test_w5_provenance_constraints_present 101
method TestKnowledgeGraphSchema.test_w5_session_constraint_lives_in_canonical_layer 122 The Session.session_id uniqueness constraint is NOT declared here
method TestKnowledgeGraphSchema.test_w5_provenance_edges_defined 134