Orchestrata Ultimate › Tests › Reference › scripts › test_purge_memgraph_test_schema
Tests reference — tests/scripts/test_purge_memgraph_test_schema.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_purge_memgraph_test_schema.py
source · 13 tests · 302 lines
Tests for scripts/purge_memgraph_test_schema.py — the leaked per-test
Covers: knowledge_graph.canonical_schema
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_is_leaked_label_matches_only_uuid_scoped_labels |
135 | |
| function | test_survey_reports_the_leaked_label_and_leaves_the_others_alone |
148 | |
| function | test_apply_drops_the_leaked_label_and_spares_production_schema |
164 | The property that makes this safe to point at a production cluster. |
| function | test_dry_run_is_the_default_and_changes_nothing |
186 | |
| function | test_apply_is_idempotent |
196 | |
| function | test_resolve_uri_prefers_the_explicit_flag |
206 | |
| function | test_resolve_uri_falls_back_to_the_environment |
214 | |
| function | test_resolve_uri_refuses_to_guess_a_target |
228 | No default address: a purge that picks its own target could delete |
| function | test_is_leaked_label_matches_the_raw_cypher_label_shapes |
243 | f"{base}{test_id}" with a raw CREATE CONSTRAINT, not the adapter. |
| function | test_is_leaked_label_never_matches_a_canonical_label |
252 | The declared canonical set is production schema, whatever it looks like. |
| function | test_is_leaked_label_requires_a_full_hex_suffix |
261 | Anchoring keeps a production label that merely CONTAINS a marker safe. |
| function | test_composite_constraint_is_dropped_as_one_unit |
269 | A two-property constraint must not be split into two one-property drops. |
| function | test_index_on_a_non_id_property_is_dropped |
291 | DROP INDEX ON :label(id) is a guess; leaked labels index value. |