From: Michael Tremer Date: Thu, 25 Jan 2024 16:00:13 +0000 (+0000) Subject: tests: Fix syntax errors in keys tests X-Git-Tag: 0.9.30~1252 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b88067bc7a788aa0bc269b12aec4820acf9486d;p=pakfire.git tests: Fix syntax errors in keys tests Signed-off-by: Michael Tremer --- diff --git a/tests/python/keys.py b/tests/python/keys.py index a444e8ea6..14473ca90 100755 --- a/tests/python/keys.py +++ b/tests/python/keys.py @@ -56,7 +56,9 @@ class KeysTests(unittest.TestCase): ) with open(path, "rb") as f: - return self.pakfire.import_key(f) + payload = f.read() + + return self.pakfire.import_key(payload) def test_import_public_key(self): # Import a public key @@ -77,7 +79,7 @@ class KeysTests(unittest.TestCase): Generate a new key """ key = self.pakfire.generate_key( - algorithm=pakfire.PAKFIRE_KEY_ALGO_ED25519, key="Key 1") + algorithm=pakfire.PAKFIRE_KEY_ALGO_ED25519, comment="Key 1") data = b"Pakfire"