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

Method test_wrong_schema_version

tests/test_presets.py:209–216  ·  view source on GitHub ↗

Test unsupported schema version.

(self, temp_dir, valid_pack_data)

Source from the content-addressed store, hash-verified

207 PresetManifest(manifest_path)
208
209 def test_wrong_schema_version(self, temp_dir, valid_pack_data):
210 """Test unsupported schema version."""
211 valid_pack_data["schema_version"] = "2.0"
212 manifest_path = temp_dir / "preset.yml"
213 with open(manifest_path, 'w') as f:
214 yaml.dump(valid_pack_data, f)
215 with pytest.raises(PresetValidationError, match="Unsupported schema version"):
216 PresetManifest(manifest_path)
217
218 def test_missing_pack_id(self, temp_dir, valid_pack_data):
219 """Test missing preset.id field."""

Callers

nothing calls this directly

Calls 1

PresetManifestClass · 0.90

Tested by

no test coverage detected