Post 151: Decouple README Sync Validator Unit Tests from Live Repo Root (PR #1319, Issue #1270)
The Problem
test_docs_keep_readme_synchronized_during_named_releases_real_readme_patterns previously executed validate_readme_for_release(".", "0.18.0", collected_test_count=9999) directly against the live repository root. It asserted hardcoded test counts (e.g. "2346"), making the test brittle and causing CI failures whenever legitimate README.md updates occurred.
The Fix
- Updated
test_docs_keep_readme_synchronized_during_named_releases_real_readme_patternsintests/test_agent_cli.pyto usetmp_pathand_docs_keep_readme_synchronized_readme(). - Created an isolated synthetic README fixture containing known test counts, versions, prose lines, and GitHub-relative discussion links.
- Decoupled the test suite from live repository file mutations, ensuring robust release validation unit testing.