We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e75aa commit ddce169Copy full SHA for ddce169
1 file changed
tests/conftest.py
@@ -2,6 +2,7 @@
2
3
import os
4
import re
5
+import subprocess
6
import sys
7
import tempfile
8
from pathlib import Path
@@ -145,11 +146,19 @@ def tmp_commitizen_project_with_gpg(tmp_commitizen_project):
145
146
147
try:
148
# create a key (a keyring will be generated within GPUPGHOME)
- c = cmd.run(
149
- f"gpg --batch --yes --debug-quick-random --passphrase '' --quick-gen-key '{SIGNER} {SIGNER_MAIL}'"
+ subprocess.run(
150
+ [
151
+ "gpg",
152
+ "--batch",
153
+ "--yes",
154
+ "--debug-quick-random",
155
+ "--passphrase",
156
+ "",
157
+ "--quick-gen-key",
158
+ f"{SIGNER} {SIGNER_MAIL}",
159
+ ],
160
+ check=True,
161
)
- if c.return_code != 0:
- raise Exception(f"gpg keygen failed with err: '{c.err}'")
162
key_id = _get_gpg_keyid(SIGNER_MAIL)
163
assert key_id
164
0 commit comments