1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-19 04:21:14 +00:00
thefuck/tests/test_readme.py

17 lines
431 B
Python
Raw Normal View History

2015-08-26 12:12:52 +03:00
from tests.utils import root
def test_readme():
2015-08-26 12:12:52 +03:00
with root.joinpath('README.md').open() as f:
readme = f.read()
2015-08-26 12:12:52 +03:00
bundled = root \
.joinpath('thefuck') \
.joinpath('rules') \
.glob('*.py')
for rule in bundled:
2015-08-24 11:25:49 +03:00
if rule.stem != '__init__':
assert rule.stem in readme,\
'Missing rule "{}" in README.md'.format(rule.stem)