1
0
Fork 0
pre-commit/tests/meta_hooks/identity_test.py
Daniel Baumann 75996f15a7
Adding upstream version 2.18.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-09 21:32:53 +01:00

8 lines
195 B
Python

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'