Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_knowledge_schema
Tests reference — tests/knowledge_graph/test_knowledge_schema.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_knowledge_schema.py
source · 46 tests · 337 lines
Tests for Knowledge Graph schema, exceptions, interfaces, nodes, relationships.
Covers: knowledge_graph.config, knowledge_graph.exceptions, knowledge_graph.interfaces, knowledge_graph.nodes, knowledge_graph.relationships, knowledge_graph.schema, knowledge_graph.types
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestSchema |
82 | Test schema constants and DDL. |
| method | TestSchema.test_all_labels_count |
85 | |
| method | TestSchema.test_constraints_not_empty |
97 | |
| method | TestSchema.test_indexes_not_empty |
100 | |
| method | TestSchema.test_fulltext_indexes |
103 | |
| method | TestSchema.test_get_all_ddl |
106 | |
| method | TestSchema.test_memgraph_dialect_translates_every_statement_it_keeps |
110 | The Memgraph rendering is DERIVED from the Neo4j one. |
| method | TestSchema.test_memgraph_dialect_loses_no_label_property_pair |
122 | Every (label, property) the Neo4j DDL covers is still covered. |
| method | TestSchema.test_translator_raises_on_an_unrecognised_statement |
139 | A new DDL form must fail loudly, not vanish from the Memgraph side. |
| method | TestSchema.test_translator_drops_fulltext_because_memgraph_has_none |
144 | |
| method | TestSchema.test_unknown_dialect_raises |
147 | |
| method | TestSchema.test_get_node_label_file |
151 | |
| method | TestSchema.test_get_node_label_class |
154 | |
| method | TestSchema.test_get_node_label_predicate |
157 | |
| method | TestSchema.test_get_node_label_unknown |
160 | |
| class | TestExceptions |
164 | Test exception hierarchy. |
| method | TestExceptions.test_base_exception |
167 | |
| method | TestExceptions.test_connection_error |
172 | |
| method | TestExceptions.test_query_error |
176 | |
| method | TestExceptions.test_parse_error |
180 | |
| method | TestExceptions.test_sync_error |
184 | |
| method | TestExceptions.test_ownership_error |
188 | |
| method | TestExceptions.test_temporal_error |
193 | |
| method | TestExceptions.test_schema_error |
197 | |
| class | TestInterfaces |
202 | Test protocol interfaces are runtime checkable. |
| method | TestInterfaces.test_iknoledge_graph_is_protocol |
205 | |
| method | TestInterfaces.test_icode_analyzer_is_protocol |
212 | |
| method | TestInterfaces.test_itemporal_manager_is_protocol |
215 | |
| method | TestInterfaces.test_iquery_engine_is_protocol |
218 | |
| class | TestNodeConverters |
222 | Test node-to-Cypher converters. |
| method | TestNodeConverters.test_node_to_cypher_props |
225 | |
| method | TestNodeConverters.test_file_node_to_cypher |
232 | |
| method | TestNodeConverters.test_class_node_to_cypher |
238 | |
| method | TestNodeConverters.test_function_node_to_cypher |
245 | |
| method | TestNodeConverters.test_predicate_node_to_cypher |
251 | |
| method | TestNodeConverters.test_rule_node_to_cypher |
257 | |
| method | TestNodeConverters.test_cypher_record_to_node |
263 | |
| method | TestNodeConverters.test_cypher_record_to_node_empty |
270 | |
| class | TestRelationshipHelpers |
274 | Test relationship helpers. |
| method | TestRelationshipHelpers.test_rel_type_to_neo4j |
277 | |
| method | TestRelationshipHelpers.test_build_create_rel_cypher |
280 | |
| method | TestRelationshipHelpers.test_build_create_rel_with_props |
285 | |
| method | TestRelationshipHelpers.test_build_delete_rel_cypher |
292 | |
| method | TestRelationshipHelpers.test_contains_rel |
296 | |
| method | TestRelationshipHelpers.test_defines_rel |
300 | |
| method | TestRelationshipHelpers.test_calls_rel |
304 | |
| method | TestRelationshipHelpers.test_inherits_rel |
308 | |
| method | TestRelationshipHelpers.test_imports_rel |
312 | |
| method | TestRelationshipHelpers.test_depends_on_rel |
316 | |
| class | TestConfig |
321 | Test configuration dataclasses. |
| method | TestConfig.test_default_neo4j_config |
324 | |
| method | TestConfig.test_default_kg_config |
331 |