mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add identity meta hook
This commit is contained in:
parent
d2b92e8170
commit
a49a34ef3d
3 changed files with 27 additions and 0 deletions
6
tests/meta_hooks/identity_test.py
Normal file
6
tests/meta_hooks/identity_test.py
Normal 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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue