Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_kg_design_extended

Tests reference — tests/knowledge_graph/test_kg_design_extended.py

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

Prose pending.

tests/knowledge_graph/test_kg_design_extended.py

source · 13 tests · 319 lines

Extended tests for kg_design.py — covers error paths and edge cases.

Covers: knowledge_graph.kg_design, core.graph/ (package)

Kind Name Line Description
function test_connect_failure_prints_warning_and_disables 72 When the graph is unreachable, _connect() prints a warning and sets
function test_connect_early_return_with_shared_driver 100 Calling _connect() when a shared repo is present returns early.
function test_ensure_indexes_idempotent 114 Calling _ensure_indexes() twice is a no-op the second time.
function test_ensure_indexes_exception_on_closed_driver 123 If the driver is closed externally, _ensure_indexes() catches the
function test_run_returns_empty_when_unavailable_with_driver 140 When _available is False but _repo is not None, _run() skips
function test_run_query_error_on_closed_driver 158 If the driver is closed mid-life, _run() catches the query error
function test_check_compliance_extra_methods 174 When code has methods not present in design, they are reported as
function test_store_design_modules_without_classes 223 store_design handles modules that have no classes gracefully.
function test_sync_code_batch_three_for_class_with_method 248 sync_code batch 3 handles traces where class_name exists but method
function test_check_compliance_no_design_nodes 278 When there are no DesignClass nodes, compliance is 100%.
function test_session_data_post_init_sets_timestamp 295 SessionData.post_init populates started_at when omitted.
function test_rtm_snapshot_post_init_sets_timestamp 302 RTMSnapshot.post_init populates timestamp when omitted.
function test_close_idempotent 313 Calling close() twice does not raise.