Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_code_intelligence_graph
Tests reference — tests/knowledge_graph/test_code_intelligence_graph.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_code_intelligence_graph.py
source · 18 tests · 742 lines
Integration tests for code intelligence with a real graph.
Covers: core.tracing.traceability, knowledge_graph.config, knowledge_graph.graph_client, knowledge_graph.synchronizer, knowledge_graph.types
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestGraphNodePersistence |
190 | Verify File, Class, Function nodes are persisted to the graph. |
| method | TestGraphNodePersistence.test_sync_file_creates_file_node |
193 | |
| method | TestGraphNodePersistence.test_sync_file_creates_class_and_methods |
207 | |
| method | TestGraphNodePersistence.test_sync_file_idempotent |
236 | Syncing the same unchanged file twice produces SKIPPED on second call. |
| method | TestGraphNodePersistence.test_sync_prolog_file |
253 | |
| class | TestGraphCallGraphResolution |
279 | Verify CALLS edges are created via graph-wide Cypher resolution. |
| method | TestGraphCallGraphResolution.test_calls_edge_created |
282 | |
| method | TestGraphCallGraphResolution.test_cross_file_calls |
304 | |
| class | TestGraphInheritanceResolution |
320 | Verify INHERITS edges via graph-wide Cypher resolution. |
| method | TestGraphInheritanceResolution.test_inherits_edge_created |
323 | |
| method | TestGraphInheritanceResolution.test_pre_existing_parent |
337 | Sync parent in batch 1, child in batch 2. INHERITS resolves. |
| class | TestGraphMethodEdges |
370 | Verify DEFINES edges persisted to the graph. |
| method | TestGraphMethodEdges.test_has_method_edges |
373 | |
| method | TestGraphMethodEdges.test_method_has_class_id_in_graph |
400 | |
| class | TestGraphImportResolution |
417 | Verify IMPORTS edges persisted to the graph. |
| method | TestGraphImportResolution.test_import_edges_created |
420 | |
| class | TestGraphFullPipeline |
456 | End-to-end: sync project, resolve all edge types, verify in the graph. |
| method | TestGraphFullPipeline.test_full_pipeline |
459 | |
| method | TestGraphFullPipeline.test_resolution_cleans_up |
476 | After cleanup, no test nodes remain. |
| class | TestGraphPersistFailureVisibility |
511 | A genuine graph-write failure surfaces via persist_failed/persist_error |
| method | TestGraphPersistFailureVisibility.test_unreachable_graph_reports_persist_failed |
526 | |
| class | TestCallsResolutionPrecedence |
570 | Tier 1 (scoped, by node id) must win over Tier 2 (name-match). |
| method | TestCallsResolutionPrecedence.test_name_collision_resolves_to_scoped_target_only |
577 | Two DISJOINT batches each define a function named run. |
| method | TestCallsResolutionPrecedence.test_cross_batch_call_falls_back_to_name_match |
629 | A callee already in the graph, absent from this batch, still |
| class | TestInheritsResolutionPrecedence |
675 | The same precedence/provenance contract, for INHERITS. |
| method | TestInheritsResolutionPrecedence.test_name_collision_resolves_to_scoped_target_only |
678 | Two DISJOINT batches each define a class named Base. Batch 2's |
| method | TestInheritsResolutionPrecedence.test_cross_batch_inherit_falls_back_to_name_match |
712 | A parent class already in the graph, absent from this batch, |