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

Function test_all_push_options_ok

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

Source from the content-addressed store, hash-verified

486
487
488def test_all_push_options_ok(cap_out, store, repo_with_passing_hook):
489 args = run_opts(
490 from_ref='master', to_ref='master',
491 remote_branch='master',
492 local_branch='master',
493 remote_name='origin', remote_url='https://example.com/repo',
494 )
495 ret, printed = _do_run(cap_out, store, repo_with_passing_hook, args)
496 assert ret == 0
497 assert b'Specify both --from-ref and --to-ref.' not in printed
498
499
500def test_is_squash_merge(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