Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_connection_pooling
Tests reference — tests/knowledge_graph/test_connection_pooling.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_connection_pooling.py
source · 9 tests · 192 lines
Tests for shared graph driver (connection pooling) across spike components.
Covers: core.infra_config, knowledge_graph.cxp_auditor, knowledge_graph.kg_context, postman.postman, core.graph/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestKGCodeContextSharedDriver |
30 | Tests for KGCodeContext with shared vs owned repository. |
| method | TestKGCodeContextSharedDriver.test_shared_driver_connects_without_creating_new |
40 | KGCodeContext(repo=BoltSyncRepository(driver=shared)) uses it. |
| method | TestKGCodeContextSharedDriver.test_shared_driver_close_does_not_close_driver |
54 | Closing KGCodeContext with a shared repo leaves driver open. |
| method | TestKGCodeContextSharedDriver.test_no_driver_creates_own |
68 | KGCodeContext() with no repo creates its own. |
| method | TestKGCodeContextSharedDriver.test_no_driver_close_does_close_driver |
87 | Closing KGCodeContext with an owned repo closes it. |
| class | TestCXPAuditorSharedDriver |
106 | Tests for CXPAuditor with shared vs owned driver. |
| method | TestCXPAuditorSharedDriver.test_shared_driver_uses_it |
116 | CXPAuditor(repo=BoltSyncRepository(driver=shared)) uses the shared driver. |
| method | TestCXPAuditorSharedDriver.test_shared_driver_no_new_driver_created |
131 | CXPAuditor with a shared repo does not close the caller's driver. |
| method | TestCXPAuditorSharedDriver.test_no_driver_creates_own |
144 | CXPAuditor() with no repo creates and owns its own connection. |
| class | TestPostmanSharedDriver |
164 | Tests for Postman with a shared graph graph repository. |
| method | TestPostmanSharedDriver.test_passes_driver_to_auditor |
167 | Postman(graph_repository=shared_repo) passes it to auditor. |
| method | TestPostmanSharedDriver.test_shared_driver_identity_in_kg_and_auditor |
178 | Shared driver is the same object in both KG and auditor. |