summaryrefslogtreecommitdiffstats
path: root/tests/meta_hooks/identity_test.py
blob: 97c20ea64eef889550de189c4d90d87d74f9d499 (plain)
1
2
3
4
5
6
7
8
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'