MCPcopy
hub / github.com/github/spec-kit / test_missing_schema_version

Method test_missing_schema_version

tests/test_presets.py:200–207  ·  view source on GitHub ↗

Test missing schema_version field.

(self, temp_dir, valid_pack_data)

Source from the content-addressed store, hash-verified

198 PresetManifest(manifest_path)
199
200 def test_missing_schema_version(self, temp_dir, valid_pack_data):
201 """Test missing schema_version field."""
202 del valid_pack_data["schema_version"]
203 manifest_path = temp_dir / "preset.yml"
204 with open(manifest_path, 'w') as f:
205 yaml.dump(valid_pack_data, f)
206 with pytest.raises(PresetValidationError, match="Missing required field: schema_version"):
207 PresetManifest(manifest_path)
208
209 def test_wrong_schema_version(self, temp_dir, valid_pack_data):
210 """Test unsupported schema version."""

Callers

nothing calls this directly

Calls 1

PresetManifestClass · 0.90

Tested by

no test coverage detected