Files
frame/tests/test_partitions.py
lainandSisyphus a6d6168fd5 chore: add community files, CI workflows, and host test tooling
Add the repository-facing scaffolding:

- Community/legal: README.md, LICENSE (GPL-3.0-or-later), NOTICE,
  CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md, .gitleaks.toml
- CI: .github/ workflows (ci.yml aggregate gate, nightly.yml, codeql.yml),
  issue/PR templates, dependabot config (pinned Actions per README)
- Host tooling: tools/frame_tools (ruff/pyright/pytest gates, partition,
  evidence-schema, doc-links, SBOM checks), tests/, pyproject.toml, uv.lock
- poc/ host side: poc/host contract-test suite (ASan/TSan-capable),
  poc/README.md, poc/poc-a.code-workspace

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
2026-08-31 08:00:51 +08:00

19 lines
546 B
Python

from pathlib import Path
from frame_tools.partitions import validate_partitions
def test_repository_partition_layout_is_frozen() -> None:
assert validate_partitions(Path("partitions.csv")) == []
def test_changed_partition_is_rejected(tmp_path: Path) -> None:
changed = Path("partitions.csv").read_text(encoding="utf-8").replace("0x4C0000", "0x4B0000")
path = tmp_path / "partitions.csv"
path.write_text(changed, encoding="utf-8")
errors = validate_partitions(path)
assert errors
assert "plugin_fs" in errors[0]