mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 21:04:17 +00:00
commit
375913d017
1 changed files with 13 additions and 0 deletions
13
tests/readme_test.py
Normal file
13
tests/readme_test.py
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue