Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_schema_completeness
Tests reference — tests/knowledge_graph/test_schema_completeness.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_schema_completeness.py
source · 7 tests · 153 lines
Schema completeness tests for SPEC-008 (gap #9 in plans/kg-schema-gaps.md).
Covers: core.tracing.traceability, knowledge_graph.schema
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestSpec008NodeTypeCompleteness |
90 | FR-001: every SPEC-008 node type is defined/derivable in schema.py. |
| method | TestSpec008NodeTypeCompleteness.test_all_fr001_node_types_present_in_all_labels |
94 | |
| method | TestSpec008NodeTypeCompleteness.test_task_node_type_defined |
102 | |
| class | TestSpec008RelationshipCompleteness |
108 | FR-002: every SPEC-008 relationship type is represented in schema.py. |
| method | TestSpec008RelationshipCompleteness.test_19_fr002_relationships_enumerated |
112 | |
| method | TestSpec008RelationshipCompleteness.test_every_fr002_relationship_name_represented |
116 | |
| method | TestSpec008RelationshipCompleteness.test_gap_3_relationship_constants_added_by_name |
132 | |
| class | TestTaskConstraintAndIndex |
140 | Gap #1: the Task constraint/index contract from graph-schema.cql. |
| method | TestTaskConstraintAndIndex.test_task_id_constraint_present |
144 | |
| method | TestTaskConstraintAndIndex.test_task_status_index_present |
150 |