22 lines
644 B
Python
22 lines
644 B
Python
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
from readme_harness.core import audit_readme
|
|
|
|
|
|
QUALITY_ROOT = Path(__file__).parent / "quality"
|
|
|
|
|
|
@pytest.mark.parametrize("fixture", ["python-cli", "backend-service", "library"])
|
|
def test_small_quality_fixture(fixture, tmp_path):
|
|
repo = QUALITY_ROOT / fixture
|
|
readme = (repo / "README.md").read_text(encoding="utf-8")
|
|
|
|
result = audit_readme(repo, output_dir=tmp_path / fixture)
|
|
|
|
assert result.status == "PASS"
|
|
assert len(readme) < 2_000
|
|
assert "## 빠른 시작" in readme
|
|
assert not any(term in readme for term in ("claim-id", "QUALITY_REVIEWED", "visual-plan", "run-id"))
|