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

Function test_cd_unexpected_filename

tests/commands/hazmat_test.py:37–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def test_cd_unexpected_filename():
38 with pytest.raises(SystemExit) as excinfo:
39 main(('cd', 'subdir', 'cmd', '--', 'subdir/1', 'not-subdir/2'))
40 msg, = excinfo.value.args
41 assert msg == "unexpected file without prefix='subdir/': not-subdir/2"
42
43
44def _norm(out):

Callers

nothing calls this directly

Calls 1

mainFunction · 0.90

Tested by

no test coverage detected