Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_graph_node_mixins

Tests reference — tests/knowledge_graph/test_graph_node_mixins.py

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

Prose pending.

tests/knowledge_graph/test_graph_node_mixins.py

source · 20 tests · 318 lines

Covers: knowledge_graph.graph_node_mixins, knowledge_graph.types

Kind Name Line Description
function test_create_package_node 70
function test_create_module_node 81
function test_create_class_node 92
function test_create_function_node 111
function test_create_function_node_falls_back_to_node_id_when_no_result 130
function test_create_predicate_node 138
function test_create_predicate_node_falls_back_to_node_id_when_no_result 161
function test_create_rule_node 169
function test_create_rule_node_falls_back_to_node_id_when_no_result 189
function test_get_project_files 197
function test_get_project_files_empty_returns_no_files 206
function test_get_project_files_paginates_across_full_batches 214
function test_get_file_entities_classifies_by_label 237
function test_get_file_entities_no_records_returns_empty_buckets 260
function test_delete_file_cascade 266
function test_delete_file_cascade_returns_zero_when_no_records 277
function test_delete_file_cascade_returns_deleted_count_from_result 283
function test_update_file_line_count_returns_true_when_found 290
function test_update_file_line_count_returns_false_when_not_found 304
function test_get_file_entities_scopes_by_project_id_not_just_path 310 Two projects can share a relative path — the match must not cross.