Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_kg_design_docs
Tests reference — tests/knowledge_graph/test_kg_design_docs.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_kg_design_docs.py
source · 8 tests · 250 lines
Tests for design document KG sync: store and retrieve via Neo4j.
Covers: core.infra_config, knowledge_graph.kg_context
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestStoreDesignDoc |
57 | Tests for KGCodeContext.store_design_doc. |
| method | TestStoreDesignDoc.test_creates_document_node |
60 | store_design_doc creates a Document node with correct props. |
| method | TestStoreDesignDoc.test_returns_nonempty_document_id |
87 | store_design_doc returns a non-empty UUID string. |
| method | TestStoreDesignDoc.test_links_to_project_via_has_doc |
104 | Document is linked to Project via HAS_DOC when Project exists. |
| class | TestGetDesignDocs |
143 | Tests for KGCodeContext.get_design_docs. |
| method | TestGetDesignDocs.test_retrieves_stored_documents |
146 | get_design_docs retrieves previously stored documents. |
| method | TestGetDesignDocs.test_filters_by_doc_type |
163 | get_design_docs filters documents by type when specified. |
| method | TestGetDesignDocs.test_returns_empty_for_unknown_project |
195 | get_design_docs returns empty list for unknown project path. |
| method | TestGetDesignDocs.test_returns_newest_first |
203 | Documents are ordered by created_at descending. |
| method | TestGetDesignDocs.test_roundtrip_store_then_get |
228 | Store then get returns the same content. |