mirror of
https://github.com/github/spec-kit.git
synced 2026-03-20 12:23:09 +00:00
fix: remove self-test from catalog.json (local-only preset)
This commit is contained in:
@@ -2,25 +2,5 @@
|
|||||||
"schema_version": "1.0",
|
"schema_version": "1.0",
|
||||||
"updated_at": "2026-03-10T00:00:00Z",
|
"updated_at": "2026-03-10T00:00:00Z",
|
||||||
"catalog_url": "https://raw.githubusercontent.com/github/spec-kit/main/presets/catalog.json",
|
"catalog_url": "https://raw.githubusercontent.com/github/spec-kit/main/presets/catalog.json",
|
||||||
"presets": {
|
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1407,14 +1407,11 @@ class TestSelfTestPreset:
|
|||||||
assert result is not None
|
assert result is not None
|
||||||
assert result["source"] == "core"
|
assert result["source"] == "core"
|
||||||
|
|
||||||
def test_self_test_in_catalog(self):
|
def test_self_test_not_in_catalog(self):
|
||||||
"""Verify the self-test preset is listed in the catalog."""
|
"""Verify the self-test preset is NOT in the catalog (it's local-only)."""
|
||||||
catalog_path = Path(__file__).parent.parent / "presets" / "catalog.json"
|
catalog_path = Path(__file__).parent.parent / "presets" / "catalog.json"
|
||||||
catalog_data = json.loads(catalog_path.read_text())
|
catalog_data = json.loads(catalog_path.read_text())
|
||||||
assert "self-test" in catalog_data["presets"]
|
assert "self-test" not in catalog_data["presets"]
|
||||||
entry = catalog_data["presets"]["self-test"]
|
|
||||||
assert entry["name"] == "Self-Test Preset"
|
|
||||||
assert "created_at" in entry
|
|
||||||
|
|
||||||
def test_self_test_has_command(self):
|
def test_self_test_has_command(self):
|
||||||
"""Verify the self-test preset includes a command override."""
|
"""Verify the self-test preset includes a command override."""
|
||||||
|
|||||||
Reference in New Issue
Block a user