From 1c143e64b12e48f6bf618b1521c4e94982bd7ff5 Mon Sep 17 00:00:00 2001 From: Manfred Riem <15701806+mnriem@users.noreply.github.com> Date: Tue, 10 Mar 2026 16:39:07 -0500 Subject: [PATCH] fix: remove self-test from catalog.json (local-only preset) --- presets/catalog.json | 22 +--------------------- tests/test_presets.py | 9 +++------ 2 files changed, 4 insertions(+), 27 deletions(-) diff --git a/presets/catalog.json b/presets/catalog.json index db5ae643..ca40f852 100644 --- a/presets/catalog.json +++ b/presets/catalog.json @@ -2,25 +2,5 @@ "schema_version": "1.0", "updated_at": "2026-03-10T00:00:00Z", "catalog_url": "https://raw.githubusercontent.com/github/spec-kit/main/presets/catalog.json", - "presets": { - "self-test": { - "name": "Self-Test Preset", - "description": "A preset that overrides all core templates for testing purposes. Install with --dev from the repo.", - "author": "github", - "version": "1.0.0", - "repository": "https://github.com/github/spec-kit", - "license": "MIT", - "note": "This preset is bundled with the repo and intended for local testing only. Install via: specify preset add --dev presets/self-test", - "requires": { - "speckit_version": ">=0.1.0" - }, - "provides": { - "templates": 6, - "commands": 1 - }, - "tags": ["testing", "self-test"], - "created_at": "2026-03-10T00:00:00Z", - "updated_at": "2026-03-10T00:00:00Z" - } - } + "presets": {} } diff --git a/tests/test_presets.py b/tests/test_presets.py index 6ce8912d..3ad70c6d 100644 --- a/tests/test_presets.py +++ b/tests/test_presets.py @@ -1407,14 +1407,11 @@ class TestSelfTestPreset: assert result is not None assert result["source"] == "core" - def test_self_test_in_catalog(self): - """Verify the self-test preset is listed in the catalog.""" + def test_self_test_not_in_catalog(self): + """Verify the self-test preset is NOT in the catalog (it's local-only).""" catalog_path = Path(__file__).parent.parent / "presets" / "catalog.json" catalog_data = json.loads(catalog_path.read_text()) - assert "self-test" in catalog_data["presets"] - entry = catalog_data["presets"]["self-test"] - assert entry["name"] == "Self-Test Preset" - assert "created_at" in entry + assert "self-test" not in catalog_data["presets"] def test_self_test_has_command(self): """Verify the self-test preset includes a command override."""