test: narrow pending keyword and add pending-only guard (#390)
All checks were successful
Gitea CI / test (pull_request) Successful in 33s
Gitea CI / test (push) Successful in 32s

This commit is contained in:
agentson
2026-03-02 10:33:58 +09:00
parent 453d67b91c
commit 7c17535c3d
2 changed files with 13 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ def test_validate_issue_status_consistency_reports_conflicts() -> None:
path = Path("docs/ouroboros/80_implementation_audit.md").resolve()
text = "\n".join(
[
"| REQ-V3-004 | 상태 | 부분 | `#328` 추적 |",
"| REQ-V3-004 | 상태 | 부분 | `#328` 잔여 |",
"| 항목 | 상태 | ✅ 완료 | `#328` 머지 |",
]
)
@@ -107,3 +107,14 @@ def test_validate_issue_status_consistency_allows_done_only() -> None:
module.validate_issue_status_consistency(path, text, errors)
assert errors == []
def test_validate_issue_status_consistency_allows_pending_only() -> None:
module = _load_module()
errors: list[str] = []
path = Path("docs/ouroboros/80_implementation_audit.md").resolve()
text = "| 항목 | 상태 | 부분 | `#390` 추적 이슈 |"
module.validate_issue_status_consistency(path, text, errors)
assert errors == []