Validating Documentation Completeness Testing in thefuck
This test suite validates the README.md documentation accuracy by ensuring all bundled rules are properly documented. It performs automated verification of rule documentation completeness in the thefuck project.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
nvbn/thefuck
tests/test_readme.py
def test_readme(source_root):
with source_root.joinpath('README.md').open() as f:
readme = f.read()
bundled = source_root.joinpath('thefuck') \
.joinpath('rules') \
.glob('*.py')
for rule in bundled:
if rule.stem != '__init__':
assert rule.stem in readme, \
'Missing rule "{}" in README.md'.format(rule.stem)