1
0
Fork 0
pre-commit/tests/meta_hooks/identity_test.py

9 lines
195 B
Python
Raw Normal View History

from __future__ import annotations
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'