Test missing schema_version field.
(self, temp_dir, valid_pack_data)
| 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.""" |
nothing calls this directly
no test coverage detected