mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 06:42:10 -04:00
Pass tests in any timezone by using utcfromtimestamp
This commit is contained in:
parent
e897e2be4b
commit
2adcfe10d7
1 changed files with 1 additions and 1 deletions
|
|
@ -1786,7 +1786,7 @@ class ReportNewCertTest(unittest.TestCase):
|
|||
|
||||
self.notafter_patch = mock.patch('certbot._internal.main.crypto_util.notAfter')
|
||||
self.mock_notafter = self.notafter_patch.start()
|
||||
self.mock_notafter.return_value = datetime.fromtimestamp(0)
|
||||
self.mock_notafter.return_value = datetime.utcfromtimestamp(0)
|
||||
|
||||
def tearDown(self):
|
||||
self.notify_patch.stop()
|
||||
|
|
|
|||
Loading…
Reference in a new issue