1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-06 10:51:11 +01:00
thefuck/tests/test_readme.py

13 lines
444 B
Python
Raw Normal View History

2015-09-08 13:24:49 +01:00
def test_readme(source_root):
with source_root.joinpath('README.md').open() as f:
readme = f.read()
2015-09-08 13:24:49 +01:00
bundled = source_root.joinpath('thefuck') \
.joinpath('rules') \
.glob('*.py')
for rule in bundled:
2015-08-24 09:25:49 +01:00
if rule.stem != '__init__':
assert rule.stem in readme,\
'Missing rule "{}" in README.md'.format(rule.stem)