Orchestrata Ultimate › Tests › Reference › scripts › test_purge_memgraph_test_schema_coverage

Tests reference — tests/scripts/test_purge_memgraph_test_schema_coverage.py

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

Prose pending.

tests/scripts/test_purge_memgraph_test_schema_coverage.py

source · 13 tests · 316 lines

Additional tests for scripts/purge_memgraph_test_schema.py to fill coverage gaps.

Kind Name Line Description
function test_as_props_handles_string_input 55 Line 156: _as_props when raw is a str.
function test_as_props_handles_list_input 62 Line 157-158: _as_props when raw is a list.
function test_as_props_handles_tuple_input 69 Line 157-158: _as_props when raw is a tuple.
function test_as_props_handles_none_input 76 Line 159: _as_props when raw is None or other type.
function test_databases_lists_all_databases 86 Lines 245-246: _databases returns sorted list of all databases.
function test_drop_label_with_vector_index 98 Line 213: drop_label drops vector indexes when provided.
function test_drop_label_handles_missing_ddl_gracefully 138 Lines 217-219: drop_label ignores 'doesn't exist' errors.
function test_vector_indexes_by_label_finds_leaked_indexes 149 Line 149: vector_indexes_by_label returns dict of leaked vector indexes.
function test_vector_indexes_by_label_ignores_production_indexes 177 Line 148: vector_indexes_by_label skips non-leaked labels.
function test_purge_one_with_more_than_10_labels 189 Line 263: _purge_one truncates output when >10 labels.
function test_main_with_all_databases_flag 228 Lines 294-307: main --all-databases sweeps all databases.
function test_main_all_databases_apply 279 Lines 294-307: main --all-databases --apply drops across all databases.
function test_main_all_databases_clean 309 Lines 301-303: main --all-databases reports clean when nothing found.