Skip to content
Snippets Groups Projects
Commit 375913d0 authored by Anthony Sottile's avatar Anthony Sottile
Browse files

Merge pull request #31 from pre-commit/readme_test

Add test for readme
parents 144e6a93 a8b89150
Branches
Tags
No related merge requests found
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())
for hook in hooks:
assert '`{0}`'.format(hook['id']) in readme_contents
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment