Skip to content

Commit 1c143e6

Browse files
committed
fix: remove self-test from catalog.json (local-only preset)
1 parent da6e7d2 commit 1c143e6

2 files changed

Lines changed: 4 additions & 27 deletions

File tree

presets/catalog.json

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,5 @@
22
"schema_version": "1.0",
33
"updated_at": "2026-03-10T00:00:00Z",
44
"catalog_url": "https://raw.githubusercontent.com/github/spec-kit/main/presets/catalog.json",
5-
"presets": {
6-
"self-test": {
7-
"name": "Self-Test Preset",
8-
"description": "A preset that overrides all core templates for testing purposes. Install with --dev from the repo.",
9-
"author": "github",
10-
"version": "1.0.0",
11-
"repository": "https://github.com/github/spec-kit",
12-
"license": "MIT",
13-
"note": "This preset is bundled with the repo and intended for local testing only. Install via: specify preset add --dev presets/self-test",
14-
"requires": {
15-
"speckit_version": ">=0.1.0"
16-
},
17-
"provides": {
18-
"templates": 6,
19-
"commands": 1
20-
},
21-
"tags": ["testing", "self-test"],
22-
"created_at": "2026-03-10T00:00:00Z",
23-
"updated_at": "2026-03-10T00:00:00Z"
24-
}
25-
}
5+
"presets": {}
266
}

tests/test_presets.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,14 +1407,11 @@ def test_self_test_removal_restores_core(self, project_dir):
14071407
assert result is not None
14081408
assert result["source"] == "core"
14091409

1410-
def test_self_test_in_catalog(self):
1411-
"""Verify the self-test preset is listed in the catalog."""
1410+
def test_self_test_not_in_catalog(self):
1411+
"""Verify the self-test preset is NOT in the catalog (it's local-only)."""
14121412
catalog_path = Path(__file__).parent.parent / "presets" / "catalog.json"
14131413
catalog_data = json.loads(catalog_path.read_text())
1414-
assert "self-test" in catalog_data["presets"]
1415-
entry = catalog_data["presets"]["self-test"]
1416-
assert entry["name"] == "Self-Test Preset"
1417-
assert "created_at" in entry
1414+
assert "self-test" not in catalog_data["presets"]
14181415

14191416
def test_self_test_has_command(self):
14201417
"""Verify the self-test preset includes a command override."""

0 commit comments

Comments
 (0)