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

Function test_local_python_repo

tests/repository_test.py:352–358  ·  view source on GitHub ↗
(store, local_python_config)

Source from the content-addressed store, hash-verified

350
351
352def test_local_python_repo(store, local_python_config):
353 hook = _get_hook(local_python_config, store, 'foo')
354 # language_version should have been adjusted to the interpreter version
355 assert hook.language_version != C.DEFAULT
356 ret, out = _hook_run(hook, ('filename',), color=False)
357 assert ret == 0
358 assert out == b"['filename']\nHello World\n"
359
360
361def test_default_language_version(store, local_python_config):

Callers

nothing calls this directly

Calls 2

_get_hookFunction · 0.85
_hook_runFunction · 0.85

Tested by

no test coverage detected