added remote_branch parameter in one of the tests

This commit is contained in:
surafelabebe 2020-12-21 16:10:47 -08:00 committed by Surafel Worku
parent dbd75ca7b2
commit 69430751ab
2 changed files with 1 additions and 1 deletions

View file

@ -379,7 +379,6 @@ def run(
if args.remote_name and args.remote_url:
environ['PRE_COMMIT_REMOTE_NAME'] = args.remote_name
environ['PRE_COMMIT_REMOTE_URL'] = args.remote_url
print(environ['PRE_COMMIT_REMOTE_NAME'])
if args.checkout_type:
environ['PRE_COMMIT_CHECKOUT_TYPE'] = args.checkout_type

View file

@ -486,6 +486,7 @@ def test_from_ref_to_ref_error_msg_error(
def test_all_push_options_ok(cap_out, store, repo_with_passing_hook):
args = run_opts(
from_ref='master', to_ref='master',
remote_branch='master',
remote_name='origin', remote_url='https://example.com/repo',
)
ret, printed = _do_run(cap_out, store, repo_with_passing_hook, args)