Files
pre-commit/tests/meta_hooks/identity_test.py
2018-12-29 13:13:31 -08:00

7 lines
159 B
Python

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'