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

Function test_really_long_file_paths

tests/repository_test.py:293–302  ·  view source on GitHub ↗
(tempdir_factory, store)

Source from the content-addressed store, hash-verified

291
292
293def test_really_long_file_paths(tempdir_factory, store):
294 base_path = tempdir_factory.get()
295 really_long_path = os.path.join(base_path, 'really_long' * 10)
296 cmd_output_b('git', 'init', really_long_path)
297
298 path = make_repo(tempdir_factory, 'python_hooks_repo')
299 config = make_config_from_repo(path)
300
301 with cwd(really_long_path):
302 _get_hook(config, store, 'foo')
303
304
305def test_config_overrides_repo_specifics(tempdir_factory, store):

Callers

nothing calls this directly

Calls 6

cmd_output_bFunction · 0.90
make_repoFunction · 0.90
make_config_from_repoFunction · 0.90
cwdFunction · 0.90
_get_hookFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected