MCPcopy
hub / github.com/pre-commit/pre-commit / test_simple_python_hook

Function test_simple_python_hook

tests/languages/python_test.py:331–335  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

329
330
331def test_simple_python_hook(tmp_path):
332 _make_hello_hello(tmp_path)
333
334 ret = run_language(tmp_path, python, 'socks', [os.devnull])
335 assert ret == (0, f'[{os.devnull!r}]\nhello hello\n'.encode())
336
337
338def test_simple_python_hook_default_version(tmp_path):

Calls 2

run_languageFunction · 0.90
_make_hello_helloFunction · 0.85

Tested by

no test coverage detected