1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00
thefuck/tests/test_readme.py
2023-07-30 22:22:37 +02:00

13 lines
445 B
Python

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)