Skip to content

Commit

Permalink
Fix tests and version dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
leogregianin committed May 3, 2024
1 parent 48efbe6 commit fe0ac15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
install_requires=[
'certifi',
'cffi',
'cryptography',
"cryptography>=42.0.0",
'pyOpenSSL',
],
classifiers=[
Expand Down
8 changes: 4 additions & 4 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ 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(
pfx_file=p12_file,
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(
Expand Down Expand Up @@ -159,15 +159,15 @@ 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(
pfx_file=pfx_file,
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(
Expand Down

0 comments on commit fe0ac15

Please sign in to comment.