From fe0ac15f56642489682beac8a51fdc2aea517787 Mon Sep 17 00:00:00 2001 From: Leonardo Gregianin Date: Fri, 3 May 2024 08:40:07 -0400 Subject: [PATCH] Fix tests and version dependencies --- setup.py | 2 +- tests/test.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index c1b06cd..4c5337e 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ install_requires=[ 'certifi', 'cffi', - 'cryptography', + "cryptography>=42.0.0", 'pyOpenSSL', ], classifiers=[ diff --git a/tests/test.py b/tests/test.py index 01832c5..54b3934 100644 --- a/tests/test.py +++ b/tests/test.py @@ -68,7 +68,7 @@ def test_p12_not_valid_before(self): password=password_ok ) _cert.read_pfx_file() - self.assertEqual(str(_cert.not_valid_before()), "2022-01-25 15:20:15") + self.assertEqual(str(_cert.not_valid_before()), "2022-01-25 15:20:15+00:00") def test_p12_not_valid_after(self): _cert = Certificate( @@ -76,7 +76,7 @@ def test_p12_not_valid_after(self): password=password_ok ) _cert.read_pfx_file() - self.assertEqual(str(_cert.not_valid_after()), "2024-10-20 15:20:15") + self.assertEqual(str(_cert.not_valid_after()), "2024-10-20 15:20:15+00:00") def test_p12_serial_number(self): _cert = Certificate( @@ -159,7 +159,7 @@ def test_not_valid_before(self): password=password_ok ) _cert.read_pfx_file() - self.assertEqual(str(_cert.not_valid_before()), "2022-01-25 15:20:15") + self.assertEqual(str(_cert.not_valid_before()), "2022-01-25 15:20:15+00:00") def test_not_valid_after(self): _cert = Certificate( @@ -167,7 +167,7 @@ def test_not_valid_after(self): password=password_ok ) _cert.read_pfx_file() - self.assertEqual(str(_cert.not_valid_after()), "2024-10-20 15:20:15") + self.assertEqual(str(_cert.not_valid_after()), "2024-10-20 15:20:15+00:00") def test_serial_number(self): _cert = Certificate(