test_ukify: skip test requiring cryptography

I'll add the dep in Fedora spec so it does get tested at least
in some cases.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2023-06-14 13:18:00 +02:00
parent 27140fc7d1
commit 13a29b0efb
+3
View File
@@ -713,6 +713,9 @@ def test_key_cert_generation(tmpdir):
])
assert opts.verb == 'genkey'
ukify.check_cert_and_keys_nonexistent(opts)
pytest.importorskip('cryptography')
ukify.generate_keys(opts)
if not shutil.which('openssl'):