MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / test_basic_run_hook

Function test_basic_run_hook

tests/lang_base_test.py:154–166  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

152
153
154def test_basic_run_hook(tmp_path):
155 ret, out = lang_base.basic_run_hook(
156 Prefix(tmp_path),
157 'echo hi',
158 ['hello'],
159 ['file', 'file', 'file'],
160 is_local=False,
161 require_serial=False,
162 color=False,
163 )
164 assert ret == 0
165 out = out.replace(b'\r\n', b'\n')
166 assert out == b'hi hello file file file\n'
167
168
169def test_hook_cmd():

Callers

nothing calls this directly

Calls 1

PrefixClass · 0.90

Tested by

no test coverage detected