Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_knowledge_graph_client
Tests reference — tests/knowledge_graph/test_knowledge_graph_client.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_knowledge_graph_client.py
source · 32 tests · 263 lines
Tests for Knowledge Graph client.
Covers: knowledge_graph.config, knowledge_graph.exceptions, knowledge_graph.graph_client, knowledge_graph.nodes, knowledge_graph.types
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestGraphClientAliasInit |
42 | Test GraphClientAlias initialization. |
| method | TestGraphClientAliasInit.test_init_default_config |
45 | |
| method | TestGraphClientAliasInit.test_init_custom_config |
50 | |
| class | TestGraphClientAliasOffline |
57 | Test GraphClientAlias behavior without connection. |
| method | TestGraphClientAliasOffline.test_not_connected_by_default |
60 | |
| method | TestGraphClientAliasOffline.test_create_node_raises_not_connected |
64 | |
| method | TestGraphClientAliasOffline.test_get_node_raises_not_connected |
70 | |
| method | TestGraphClientAliasOffline.test_update_node_raises_not_connected |
75 | |
| method | TestGraphClientAliasOffline.test_delete_node_raises_not_connected |
80 | |
| method | TestGraphClientAliasOffline.test_query_raises_not_connected |
85 | |
| method | TestGraphClientAliasOffline.test_count_nodes_raises_not_connected |
90 | |
| method | TestGraphClientAliasOffline.test_ensure_schema_raises_not_connected |
95 | |
| method | TestGraphClientAliasOffline.test_create_relationship_raises_not_connected |
100 | |
| method | TestGraphClientAliasOffline.test_delete_relationship_raises_not_connected |
105 | |
| method | TestGraphClientAliasOffline.test_close_no_driver |
110 | |
| class | TestGraphClientAliasConnectFail |
116 | Test connection failure handling. |
| method | TestGraphClientAliasConnectFail.test_connect_bad_uri |
119 | |
| class | TestNodeConversions |
127 | Test node-to-Cypher conversion functions. |
| method | TestNodeConversions.test_node_to_cypher_props |
130 | |
| method | TestNodeConversions.test_file_node_to_cypher |
138 | |
| method | TestNodeConversions.test_class_node_to_cypher |
145 | |
| method | TestNodeConversions.test_function_node_to_cypher |
152 | |
| method | TestNodeConversions.test_function_node_with_class_id |
158 | |
| method | TestNodeConversions.test_predicate_node_to_cypher |
163 | |
| method | TestNodeConversions.test_rule_node_to_cypher |
169 | |
| method | TestNodeConversions.test_cypher_record_to_node |
175 | |
| method | TestNodeConversions.test_cypher_record_to_node_empty |
182 | |
| method | TestNodeConversions.test_cypher_record_to_node_unknown_type |
185 | |
| class | TestExceptions |
192 | Test exception hierarchy. |
| method | TestExceptions.test_knowledge_graph_error |
195 | |
| method | TestExceptions.test_graph_connection_error |
200 | |
| method | TestExceptions.test_graph_query_error |
204 | |
| method | TestExceptions.test_graph_schema_error |
209 | |
| class | TestGraphClientAliasLive |
214 | Integration tests with a real graph. |
| method | TestGraphClientAliasLive.test_connect_and_close |
228 | |
| method | TestGraphClientAliasLive.test_ensure_schema |
236 | |
| method | TestGraphClientAliasLive.test_count_nodes |
245 | |
| method | TestGraphClientAliasLive.test_query |
255 |