From 1ca50fc45a2a817a3586d6186e4006b34a744fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ioan=20Biz=C4=83u?= Date: Fri, 22 Nov 2024 13:12:56 +0100 Subject: [PATCH] fixup! chore(core/tests): add smoke test for libtropic --- core/tests/test_trezor.crypto.tropic.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/tests/test_trezor.crypto.tropic.py b/core/tests/test_trezor.crypto.tropic.py index ce7c5dec60..1170e3aa43 100644 --- a/core/tests/test_trezor.crypto.tropic.py +++ b/core/tests/test_trezor.crypto.tropic.py @@ -11,9 +11,6 @@ class TestCryptoTropic(unittest.TestCase): def test_get_certificate(self): self.assertEqual(len(tropic.get_certificate()), 512) - def test_get_random(self): - self.assertEqual(len(tropic.random_get(10)), 10) - def test_sign(self): try: tropic.sign(0, "ASD") @@ -21,13 +18,6 @@ class TestCryptoTropic(unittest.TestCase): except ValueError as e: self.assertIn("invalid length", str(e).lower()) - # signing needs to fail because we don't have a key! - try: - tropic.sign(0, "a" * 32) - assert False - except tropic.TropicError as e: - self.assertIn("sign failed", str(e).lower()) - tropic.key_generate(0) # signing should work now that we have a key