Files
frame/tests/test_pr_title.py
T
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

12 lines
410 B
Python

from frame_tools.pr_title import validate_title
def test_accepts_conventional_title() -> None:
assert validate_title("feat(runtime): add lifecycle gate") is None
assert validate_title("fix!: reject stale handles") is None
def test_rejects_unstructured_title() -> None:
assert validate_title("Add lifecycle gate") is not None
assert validate_title("feature: add lifecycle gate") is not None