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

Function test_hazmat

tests/repository_test.py:511–519  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

509
510
511def test_hazmat(tmp_path):
512 ret = run_language(
513 tmp_path, unsupported,
514 f'pre-commit hazmat ignore-exit-code {shlex.quote(sys.executable)} '
515 f"-c 'import sys; raise SystemExit(sys.argv[1:])'",
516 ('f1', 'f2'),
517 )
518 expected = b"['f1', 'f2']\n"
519 assert ret == (0, expected)

Callers

nothing calls this directly

Calls 1

run_languageFunction · 0.90

Tested by

no test coverage detected