This commit is contained in:
Sviatoslav Sydorenko 2017-06-08 08:44:22 +00:00 committed by GitHub
commit f8de2e4621
6 changed files with 9 additions and 14 deletions

View file

@ -1,13 +1,11 @@
from __future__ import absolute_import
from __future__ import unicode_literals
import io
import yaml
def test_readme_contains_all_hooks():
readme_contents = io.open('README.md').read()
hooks = yaml.load(io.open('hooks.yaml').read())
readme_contents = open('README.md').read()
hooks = yaml.load(open('hooks.yaml').read())
for hook in hooks:
assert '`{}`'.format(hook['id']) in readme_contents