Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_knowledge_interfaces

Tests reference — tests/knowledge_graph/test_knowledge_interfaces.py

Module of tests/knowledge_graph, split out because the directory page would be too large.

Prose pending.

tests/knowledge_graph/test_knowledge_interfaces.py

source · 39 tests · 359 lines

Tests for Knowledge Graph interfaces and protocol compliance.

Covers: knowledge_graph.ast_analyzer, knowledge_graph.config, knowledge_graph.graph_client, knowledge_graph.interfaces, knowledge_graph.query_engine, knowledge_graph.relationships, knowledge_graph.schema, knowledge_graph.temporal, knowledge_graph.types

Kind Name Line Description
class TestIKnowledgeGraphProtocol 17 Test IKnowledgeGraph protocol definition.
method TestIKnowledgeGraphProtocol.test_is_runtime_checkable 20
method TestIKnowledgeGraphProtocol.test_protocol_has_create_node 23
method TestIKnowledgeGraphProtocol.test_protocol_has_get_node 26
method TestIKnowledgeGraphProtocol.test_protocol_has_update_node 29
method TestIKnowledgeGraphProtocol.test_protocol_has_delete_node 32
method TestIKnowledgeGraphProtocol.test_protocol_has_create_relationship 35
method TestIKnowledgeGraphProtocol.test_protocol_has_query 38
class TestICodeAnalyzerProtocol 42 Test ICodeAnalyzer protocol definition.
method TestICodeAnalyzerProtocol.test_protocol_has_analyze_file 45
method TestICodeAnalyzerProtocol.test_protocol_has_analyze_project 48
class TestITemporalManagerProtocol 52 Test ITemporalManager protocol definition.
method TestITemporalManagerProtocol.test_protocol_has_get_state_at 55
method TestITemporalManagerProtocol.test_protocol_has_get_history 58
class TestIQueryEngineProtocol 62 Test IQueryEngine protocol definition.
method TestIQueryEngineProtocol.test_protocol_has_query 65
method TestIQueryEngineProtocol.test_protocol_has_multi_hop 68
method TestIQueryEngineProtocol.test_protocol_has_search 71
class TestProtocolCompliance 75 Test that concrete classes satisfy protocols structurally.
method TestProtocolCompliance.test_graph_client_has_create_node 78
method TestProtocolCompliance.test_ast_analyzer_has_analyze_methods 91
method TestProtocolCompliance.test_temporal_manager_has_required_methods 100
method TestProtocolCompliance.test_query_engine_has_required_methods 109
class TestSchemaConstants 120 Test schema constants are properly defined.
method TestSchemaConstants.test_all_labels_defined 123
method TestSchemaConstants.test_constraints_defined 143
method TestSchemaConstants.test_indexes_defined 155
method TestSchemaConstants.test_fulltext_indexes_defined 179
method TestSchemaConstants.test_get_all_ddl 186
method TestSchemaConstants.test_get_node_label_mapping 201
class TestRelationshipHelpers 214 Test relationship helper functions.
method TestRelationshipHelpers.test_rel_type_to_neo4j 217
method TestRelationshipHelpers.test_build_create_rel_cypher 228
method TestRelationshipHelpers.test_build_create_rel_cypher_with_props 237
method TestRelationshipHelpers.test_build_delete_rel_cypher 248
method TestRelationshipHelpers.test_contains_rel 257
method TestRelationshipHelpers.test_defines_rel 267
method TestRelationshipHelpers.test_calls_rel 275
method TestRelationshipHelpers.test_inherits_rel 283
method TestRelationshipHelpers.test_imports_rel 291
method TestRelationshipHelpers.test_depends_on_rel 299
class TestConfigDefaults 308 Test configuration default values.
method TestConfigDefaults.test_neo4j_config_defaults 311
method TestConfigDefaults.test_cache_config_defaults 324
method TestConfigDefaults.test_sync_config_defaults 333
method TestConfigDefaults.test_query_config_defaults 342
method TestConfigDefaults.test_knowledge_graph_config 351