Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_canonical_schema
Tests reference — tests/knowledge_graph/test_canonical_schema.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_canonical_schema.py
source · 40 tests · 716 lines
Tests for knowledge_graph.canonical_schema (SPEC-106 FR-001).
Covers: core.graph_factory, knowledge_graph.canonical_schema, core.graph/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestProjectQualifiedId |
137 | |
| method | TestProjectQualifiedId.test_basic |
138 | |
| method | TestProjectQualifiedId.test_rejects_empty_project |
143 | |
| method | TestProjectQualifiedId.test_rejects_empty_qualified_name |
147 | |
| method | TestProjectQualifiedId.test_rejects_colon_in_project |
151 | |
| class | TestCodeEntityId |
204 | |
| method | TestCodeEntityId.test_roundtrip |
205 | |
| method | TestCodeEntityId.test_roundtrip_module_level_qualname |
214 | |
| method | TestCodeEntityId.test_rejects_empty_relpath |
218 | |
| method | TestCodeEntityId.test_rejects_empty_qualname |
222 | |
| method | TestCodeEntityId.test_rejects_separator_in_relpath |
226 | |
| method | TestCodeEntityId.test_rejects_separator_in_qualname |
230 | |
| method | TestCodeEntityId.test_parse_rejects_id_without_separator |
234 | |
| class | TestCanonicalMergeKeys |
244 | |
| method | TestCanonicalMergeKeys.test_settles_the_documented_divergences |
245 | |
| method | TestCanonicalMergeKeys.test_get_canonical_merge_keys_is_defensive_copy |
259 | |
| method | TestCanonicalMergeKeys.test_canonical_labels_matches_merge_keys |
265 | |
| method | TestCanonicalMergeKeys.test_relationship_constants |
268 | |
| method | TestCanonicalMergeKeys.test_hub_link_relationship_constants |
273 | |
| method | TestCanonicalMergeKeys.test_architecture_ontology_relationship_constants |
284 | |
| method | TestCanonicalMergeKeys.test_change_gains_a_merge_key_this_wave |
299 | |
| class | TestDDL |
310 | |
| method | TestDDL.test_constraints_defined_for_every_canonical_label |
311 | |
| method | TestDDL.test_all_constraints_are_idempotent_ddl |
316 | |
| method | TestDDL.test_get_all_ddl_is_constraints_plus_indexes |
322 | |
| method | TestDDL.test_get_all_ddl_neo4j_dialect_is_the_default |
325 | |
| method | TestDDL.test_get_all_ddl_memgraph_dialect_covers_every_canonical_key |
328 | Migration plan Step 1.2: the SAME identity table, Memgraph grammar. |
| method | TestDDL.test_get_all_ddl_rejects_unknown_dialect |
350 | |
| class | TestConformanceReport |
362 | |
| method | TestConformanceReport.test_ok_when_empty |
363 | |
| method | TestConformanceReport.test_not_ok_when_missing_constraints |
370 | |
| method | TestConformanceReport.test_not_ok_when_extra_constraints |
376 | |
| method | TestConformanceReport.test_not_ok_when_non_canonical_nodes |
384 | |
| method | TestConformanceReport.test_to_lines_renders_property_samples_under_drifted_label |
389 | |
| method | TestConformanceReport.test_samples_without_counts_do_not_affect_ok |
404 | |
| class | TestApply |
419 | |
| method | TestApply.test_apply_is_idempotent |
420 | |
| method | TestApply.test_apply_drops_orphan_plain_index_before_constraint |
434 | An orphan plain index on the constraint's (label, prop) must not |
| method | TestApply.test_apply_honors_explicit_empty_list |
463 | |
| class | TestCheck |
478 | |
| method | TestCheck.test_check_ok_on_canon_stamped_test_label |
479 | |
| method | TestCheck.test_check_fails_when_constraint_dropped |
501 | The brief's exact drop scenario: create our own test-only |
| method | TestCheck.test_check_reports_non_canonical_nodes |
530 | |
| method | TestCheck.test_check_detects_extra_constraint_on_divergent_key |
596 | |
| method | TestCheck.test_check_ignores_composite_constraints |
622 | |
| method | TestCheck.test_check_ignores_non_unique_constraints |
650 | |
| method | TestCheck.test_check_against_real_shared_graph |
681 | Apply-then-check conformance for the Wave-4 canonical labels. |