fix: remove self-test from catalog.json (local-only preset)

This commit is contained in:
Manfred Riem
2026-03-10 16:39:07 -05:00
parent da6e7d2283
commit 1c143e64b1
2 changed files with 4 additions and 27 deletions

View File

@@ -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": {}
}

View File

@@ -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."""