diff --git a/src/howldream/__init__.py b/src/howldream/__init__.py index 60f39bb..e0ebf50 100644 --- a/src/howldream/__init__.py +++ b/src/howldream/__init__.py @@ -1,3 +1,3 @@ """Controlled experiments. Dream output is data, not authority.""" -__version__ = "0.4.4" +__version__ = "0.4.5" diff --git a/tests/test_interop_descriptor.py b/tests/test_interop_descriptor.py index b01cdfb..10b3f1c 100644 --- a/tests/test_interop_descriptor.py +++ b/tests/test_interop_descriptor.py @@ -35,6 +35,19 @@ def test_descriptor_shape(monkeypatch, capsys): assert SCHEMA_ID.match(schema), schema +def test_version_matches_pyproject(): + from pathlib import Path + + try: + import tomllib + except ImportError: + import tomli as tomllib + pyproject_path = Path(__file__).resolve().parent.parent / "pyproject.toml" + with open(pyproject_path, "rb") as f: + data = tomllib.load(f) + assert __version__ == data["project"]["version"] + + def test_every_subcommand_and_flag_is_described(monkeypatch, capsys): described = { tuple(c["path"]): set(c["flags"]) for c in descriptor(monkeypatch, capsys)["commands"]