Clarify demo cleanup dry-run output
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-17 01:50:26 +02:00
parent 6bf0610147
commit 2d4e6bd8b6
3 changed files with 16 additions and 3 deletions
@@ -73,3 +73,11 @@ def test_cleanup_script_defaults_to_explicit_demo_project() -> None:
assert args.project_name == cleanup.DEMO_PROJECT_NAME
assert args.keep_latest == 3
assert args.apply is False
def test_cleanup_script_reports_dry_run_candidates_separately() -> None:
script = Path(__file__).resolve().parents[2] / "backend" / "scripts" / "cleanup_demo_artifacts.py"
content = script.read_text(encoding="utf-8")
assert '"candidate_files": []' in content
assert 'summary["candidate_files"].append(str(path))' in content