diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-09-17 15:16:28 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-09-17 15:16:28 +0200 |
commit | b4f955f1245ecdb7d13500bd0bd758918956c362 (patch) | |
tree | b18c4214479348f2aa226c73910de0fc3534cc8c /tests | |
parent | 0cec19bc6c3595365c87d23023bdfb7767f46b35 (diff) | |
download | gemato-b4f955f1245ecdb7d13500bd0bd758918956c362.tar.gz |
Fix handling --no-require-secure-hashes
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_openpgp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_openpgp.py b/tests/test_openpgp.py index 59deef4..3e30b65 100644 --- a/tests/test_openpgp.py +++ b/tests/test_openpgp.py @@ -1019,13 +1019,13 @@ def test_update_require_secure_cli(base_tree, caplog, hashes_arg, retval = gemato.cli.main(["gemato", "update", "-K", str(base_tree / ".key.bin"), "--hashes", hashes_arg, - str(base_tree)] + - f"{sign} {require_secure}".split()) + str(base_tree)] + + f"{sign} {require_secure}".split()) if str(OpenPGPNoImplementation('install gpg')) in caplog.text: pytest.skip('OpenPGP implementation missing') expected = (1 if insecure is not None and sign != "--no-sign" - and require_secure != "--no-require-secure_hashes" + and require_secure != "--no-require-secure-hashes" else 0) assert retval == expected if expected == 1: |