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

Function test_install_on_subst

tests/main_test.py:63–70  ·  view source on GitHub ↗
(in_git_dir, store)

Source from the content-addressed store, hash-verified

61
62@pytest.mark.skipif(os.name != 'nt', reason='windows feature')
63def test_install_on_subst(in_git_dir, store): # pragma: posix no cover
64 assert not os.path.exists('Z:')
65 cmd_output('subst', 'Z:', str(in_git_dir))
66 try:
67 with cwd('Z:'):
68 test_adjust_args_and_chdir_noop('Z:\\')
69 finally:
70 cmd_output('subst', '/d', 'Z:')
71
72
73def test_adjust_args_and_chdir_non_relative_config(in_git_dir):

Callers

nothing calls this directly

Calls 4

cmd_outputFunction · 0.90
cwdFunction · 0.90
existsMethod · 0.80

Tested by

no test coverage detected