From c1916a5e10316ab69addadfc4f5d01f42e34018b Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 27 Oct 2017 16:27:45 +0200 Subject: test_openpgp: Fix passing key to the CLI test --- tests/test_openpgp.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/test_openpgp.py b/tests/test_openpgp.py index c0a3a5f..f9071c9 100644 --- a/tests/test_openpgp.py +++ b/tests/test_openpgp.py @@ -318,6 +318,8 @@ class OpenPGPCorrectKeyTest(unittest.TestCase): def test_cli(self): d = tempfile.mkdtemp() try: + with io.open(os.path.join(d, '.key.asc'), 'w') as f: + f.write(PUBLIC_KEY) with io.open(os.path.join(d, 'Manifest'), 'w') as f: f.write(SIGNED_MANIFEST) @@ -331,6 +333,7 @@ class OpenPGPCorrectKeyTest(unittest.TestCase): self.assertEqual( gemato.cli.main(['gemato', 'verify', + '--openpgp-key', os.path.join(d, '.key.asc'), '--require-signed-manifest', d]), 0) finally: -- cgit v1.2.3