Files
ComfyUI-H3-Continuum-Tiled/tests/test_release_metadata.py
T
ukr8b3g-cmyk 190141e03e fix: stabilize V3.9 and bump package to 3.9.1
Preserve Second Pass audio and scoped Review conditioning, strengthen Take compatibility, and align Review Driving Audio.

Keep v5 history readable, document v6 restart requirements, and describe the fixes at the top of both READMEs. Remove workstation-specific paths and private operational records from public documentation.
2026-10-04 19:05:33 +09:00

31 lines
1.1 KiB
Python

from __future__ import annotations
import configparser
from pathlib import Path
import tomllib
ROOT = Path(__file__).resolve().parents[1]
EXPECTED_VERSION = "3.9.1"
def test_v35_release_metadata_is_consistent():
version_source = (ROOT / "version.py").read_text(encoding="utf-8")
pyproject = tomllib.loads((ROOT / "pyproject.toml").read_text(encoding="utf-8"))
metadata = configparser.ConfigParser()
metadata.read(ROOT / "metadata.ini", encoding="utf-8")
assert f'PACKAGE_VERSION = "{EXPECTED_VERSION}"' in version_source
assert pyproject["project"]["version"] == EXPECTED_VERSION
assert metadata["project"]["version"] == EXPECTED_VERSION
def test_public_documents_identify_the_current_v39_main():
readme = (ROOT / "README.md").read_text(encoding="utf-8")
readme_ja = (ROOT / "README_JA.md").read_text(encoding="utf-8")
changelog = (ROOT / "CHANGELOG.md").read_text(encoding="utf-8")
assert readme.startswith(f"# ComfyUI-H3-Continuum {EXPECTED_VERSION} — V3.9\n")
assert readme_ja.startswith(f"# ComfyUI-H3-Continuum {EXPECTED_VERSION} — V3.9\n")
assert f"## {EXPECTED_VERSION}" in changelog