Skip to content

Commit a574f8c

Browse files
authored
Merge pull request #212 from pre-commit/no_gpg_moar
Don't gpg sign during test
2 parents 20209f6 + e1ec204 commit a574f8c

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

tests/check_added_large_files_test.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,7 @@ def test_allows_gitlfs(temp_git_dir): # pragma: no cover
8181
with temp_git_dir.as_cwd():
8282
# Work around https://github.com/github/git-lfs/issues/913
8383
cmd_output(
84-
'git',
85-
'commit',
86-
'--no-gpg-sign',
87-
'--allow-empty',
88-
'-m',
89-
'foo',
84+
'git', 'commit', '--no-gpg-sign', '--allow-empty', '-m', 'foo',
9085
)
9186
cmd_output('git', 'lfs', 'install')
9287
temp_git_dir.join('f.py').write('a' * 10000)

tests/forbid_new_submodules_test.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@
1010
def git_dir_with_git_dir(tmpdir):
1111
with tmpdir.as_cwd():
1212
cmd_output('git', 'init', '.')
13-
cmd_output('git', 'commit', '-m', 'init', '--allow-empty')
13+
cmd_output(
14+
'git', 'commit', '-m', 'init', '--allow-empty', '--no-gpg-sign',
15+
)
1416
cmd_output('git', 'init', 'foo')
15-
with tmpdir.join('foo').as_cwd():
16-
cmd_output('git', 'commit', '-m', 'init', '--allow-empty')
17+
cmd_output(
18+
'git', 'commit', '-m', 'init', '--allow-empty', '--no-gpg-sign',
19+
cwd=tmpdir.join('foo').strpath,
20+
)
1721
yield
1822

1923

0 commit comments

Comments
 (0)