Orchestrata Ultimate › Tests › Reference › test_knowledge_graph

Tests reference — tests/test_knowledge_graph.py

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

Prose pending.

tests/test_knowledge_graph.py

source · 25 tests · 254 lines

Tests for orchestrata_ultimate.knowledge_graph module.

Covers: knowledge_graph.ast_analyzer, knowledge_graph.code_parser, knowledge_graph.nodes, knowledge_graph.schema, knowledge_graph.types, knowledge_graph.types_nodes

Kind Name Line Description
function test_utc_now_returns_utc_aware_datetime 44
function test_node_type_has_expected_members 56
function test_relationship_type_has_expected_members 64
function test_change_type_has_expected_members 70
function test_sync_status_values 76
function test_file_analysis_default_success 87
function test_file_analysis_with_errors_not_success 95
function test_project_analysis_defaults 100
function test_schema_labels_are_strings 111
function test_schema_file_label 117
function test_schema_class_label 121
function test_schema_function_label 125
function test_code_parser_nonexistent_file 134
function test_code_parser_unsupported_extension 141
function test_code_parser_parses_python_file 151
function test_code_parser_parses_empty_python_file 162
function test_code_parser_counts_lines 171
function test_code_parser_extracts_imports 180
function test_ast_analyzer_nonexistent_directory 194
function test_ast_analyzer_analyze_file_delegates_to_parser 200
function test_ast_analyzer_analyze_project 210
function test_node_to_cypher_props_contains_required_keys 223
function test_file_node_to_cypher_returns_label_and_props 234
function test_class_node_to_cypher_returns_label_and_props 242
function test_function_node_to_cypher_returns_label_and_props 250