8 lines
347 B
Python
8 lines
347 B
Python
|
|
import pytest
|
||
|
|
from spriteforge.manifest import ManifestInvalid, load_manifest
|
||
|
|
|
||
|
|
def test_future_manifest_version_is_rejected(tmp_path):
|
||
|
|
path=tmp_path/"future.yaml"
|
||
|
|
path.write_text("version: 2\nfloor:\n backend: procedural\n generator: floor\n")
|
||
|
|
with pytest.raises(ManifestInvalid,match="only manifest version 1"): load_manifest(path)
|