Add identity meta hook

This commit is contained in:
Anthony Sottile 2018-12-29 13:13:31 -08:00
parent d2b92e8170
commit a49a34ef3d
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,6 @@
from pre_commit.meta_hooks import identity
def test_identity(cap_out):
assert not identity.main(('a', 'b', 'c'))
assert cap_out.get() == 'a\nb\nc\n'