Don't fail if GPG signing is configured by default. All references.

This commit is contained in:
Pedro Algarvio 2018-12-28 20:06:52 +00:00
parent 7afb2944b2
commit 28c97a95cd
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF
10 changed files with 60 additions and 50 deletions

View file

@ -479,7 +479,7 @@ def test_stdout_write_bug_py26(repo_with_failing_hook, store, tempdir_factory):
# Have to use subprocess because pytest monkeypatches sys.stdout
_, stdout, _ = cmd_output_mocked_pre_commit_home(
'git', 'commit', '-m', 'Commit!',
'git', 'commit', '-m', 'Commit!', '--no-gpg-sign',
# git commit puts pre-commit to stderr
stderr=subprocess.STDOUT,
retcode=None,
@ -508,7 +508,7 @@ def test_lots_of_files(store, tempdir_factory):
install(C.CONFIG_FILE, store)
cmd_output_mocked_pre_commit_home(
'git', 'commit', '-m', 'Commit!',
'git', 'commit', '-m', 'Commit!', '--no-gpg-sign',
# git commit puts pre-commit to stderr
stderr=subprocess.STDOUT,
tempdir_factory=tempdir_factory,