Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_architecture_writer
Tests reference — tests/knowledge_graph/test_architecture_writer.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_architecture_writer.py
source · 37 tests · 1199 lines
Tests for knowledge_graph.architecture_writer -- the converged writer over
Covers: knowledge_graph.architecture_writer, knowledge_graph.canonical_schema, core.graph/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestSlugify |
103 | |
| method | TestSlugify.test_lowercases_and_hyphenates |
104 | |
| method | TestSlugify.test_collapses_repeated_separators |
110 | |
| method | TestSlugify.test_empty_text_falls_back_to_unnamed |
113 | |
| class | TestFailFastOnEmptySlug |
117 | |
| method | TestFailFastOnEmptySlug.test_upsert_architecture_rejects_empty_project |
118 | |
| method | TestFailFastOnEmptySlug.test_upsert_architecture_rejects_whitespace_project |
124 | |
| method | TestFailFastOnEmptySlug.test_upsert_component_rejects_colon_in_project |
130 | |
| method | TestFailFastOnEmptySlug.test_upsert_architecture_decision_rejects_empty_project |
136 | |
| class | TestUpsertIdempotencyAndProjectQualifiedIds |
145 | |
| method | TestUpsertIdempotencyAndProjectQualifiedIds.test_upsert_architecture_is_idempotent_and_project_qualified |
146 | |
| method | TestUpsertIdempotencyAndProjectQualifiedIds.test_upsert_component_is_idempotent_and_project_qualified |
170 | |
| method | TestUpsertIdempotencyAndProjectQualifiedIds.test_project_hub_created_and_linked |
195 | |
| method | TestUpsertIdempotencyAndProjectQualifiedIds.test_slug_based_ids_are_project_qualified |
215 | |
| class | TestAdrImmutability |
224 | |
| method | TestAdrImmutability.test_accepted_body_change_raises |
225 | |
| method | TestAdrImmutability.test_proposed_body_change_is_allowed |
254 | |
| method | TestAdrImmutability.test_identical_body_resubmit_on_accepted_does_not_raise |
285 | |
| method | TestAdrImmutability.test_status_transition_on_accepted_is_allowed |
303 | |
| method | TestAdrImmutability.test_supersede_path |
330 | |
| method | TestAdrImmutability.test_body_sha_stamped_and_check_adr_integrity_flags_tampering |
372 | |
| method | TestAdrImmutability.test_project_and_factory_registers_create_distinct_nodes |
406 | ADR-0047: ADR-001 (project register) and ADR-0001 (factory |
| class | TestEdgeHelpers |
461 | |
| method | TestEdgeHelpers.test_upsert_api_contract_creates_id_and_exposes_edge |
462 | |
| method | TestEdgeHelpers.test_forced_by_gate |
488 | |
| method | TestEdgeHelpers.test_justified_by_and_chose |
512 | |
| method | TestEdgeHelpers.test_must_follow_and_constrains |
543 | |
| method | TestEdgeHelpers.test_has_component |
563 | |
| method | TestEdgeHelpers.test_applies_and_implements_pattern |
580 | |
| method | TestEdgeHelpers.test_deployment_wires_deployed_as_and_in_environment |
613 | |
| method | TestEdgeHelpers.test_cost_model_creates_line_items_and_links_them |
637 | |
| class | TestFullOntologyWorkedExample |
660 | Mirrors the draft's §8 worked example: exercises every remaining |
| method | TestFullOntologyWorkedExample.test_worked_example_touches_every_remaining_node_and_edge |
666 | |
| method | TestFullOntologyWorkedExample.test_natural_id_must_be_non_empty |
1024 | |
| class | TestSeedReferenceData |
1031 | |
| method | TestSeedReferenceData.test_seed_reference_data_is_idempotent |
1032 | |
| method | TestSeedReferenceData.test_seed_reference_data_writes_real_node_counts |
1048 | |
| method | TestSeedReferenceData.test_seed_reference_data_anchors_nodes_to_project_hub |
1068 | Root-connectivity invariant (session 254): every seeded reference |
| method | TestSeedReferenceData.test_seed_reference_data_rejects_empty_project |
1086 | |
| class | TestArtifactAndLinkDocuments |
1093 | upsert_artifact/link_documents (wave ontology-phase2). |
| method | TestArtifactAndLinkDocuments.test_upsert_artifact_is_idempotent_and_project_qualified |
1096 | |
| method | TestArtifactAndLinkDocuments.test_upsert_artifact_rejects_unknown_artifact_type |
1121 | |
| method | TestArtifactAndLinkDocuments.test_link_documents_creates_the_documents_edge |
1127 | |
| class | TestLazyRepoOwnership |
1150 | The un-injected constructor path: _get_repo() lazily builds a repo |
| method | TestLazyRepoOwnership.test_lazy_writer_builds_own_repo_writes_and_closes |
1154 | |
| method | TestLazyRepoOwnership.test_closed_lazy_writer_rebuilds_repo_on_next_write |
1181 |