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

Function test_rewrite_command

tests/commands/run_test.py:509–515  ·  view source on GitHub ↗
(cap_out, store, repo_with_passing_hook)

Source from the content-addressed store, hash-verified

507
508
509def test_rewrite_command(cap_out, store, repo_with_passing_hook):
510 args = run_opts(rewrite_command='amend')
511 environ: MutableMapping[str, str] = {}
512 ret, printed = _do_run(
513 cap_out, store, repo_with_passing_hook, args, environ,
514 )
515 assert environ['PRE_COMMIT_REWRITE_COMMAND'] == 'amend'
516
517
518def test_checkout_type(cap_out, store, repo_with_passing_hook):

Callers

nothing calls this directly

Calls 2

run_optsFunction · 0.90
_do_runFunction · 0.85

Tested by

no test coverage detected