From 93d732f0d6dc712d88876508a27efb946b1aa223 Mon Sep 17 00:00:00 2001 From: Florian Bach Date: Mon, 20 Feb 2023 17:13:36 +0100 Subject: [PATCH] Update tests --- README.md | 4 ++-- calibre-plugin/__init__.py | 1 - tests/main.py | 11 ++++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index cec70db..e736a55 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,12 @@ It is a full Python reimplementation of libgourou by Grégory Soutadé (http://i extended by more and more features.
- ACSM Input Plugin for Calibre - Copyright (c) 2021-2022 Leseratte10 + ACSM Input Plugin for Calibre - Copyright (c) 2021-2023 Leseratte10 ``` ACSM Input Plugin for Calibre / acsm-calibre-plugin Formerly known as "DeACSM" -Copyright (c) 2021-2022 Leseratte10 +Copyright (c) 2021-2023 Leseratte10 This software is based on a Python reimplementation of the C++ library "libgourou" by Grégory Soutadé which is under the LGPLv3 or later diff --git a/calibre-plugin/__init__.py b/calibre-plugin/__init__.py index c6bcc9c..bd1cd9f 100644 --- a/calibre-plugin/__init__.py +++ b/calibre-plugin/__init__.py @@ -486,7 +486,6 @@ class ACSMInput(FileTypePlugin): self.unblock() return path_to_ebook - # That's an ACSM. # We would fulfill this now, but first perform some sanity checks ... if not self.ADE_sanity_check(): diff --git a/tests/main.py b/tests/main.py index 3ca8a6d..226381f 100755 --- a/tests/main.py +++ b/tests/main.py @@ -120,13 +120,14 @@ class TestAdobe(unittest.TestCase): - @freeze_time("2031-07-19 22:15:22.074860") - def test_verifyNonceCalculationFuture(self): - '''Check if the nonce calculation is still correct in the future''' + + @freeze_time("2038-04-27 03:34:32.543157") + def test_verifyNonceCalculationYk38(self): + '''Check if the nonce calculation works after 2038''' nonce_return = libadobe.addNonce() - expected_return = "2lQTp046AAAAAAAA2031-07-19T22:25:22Z" - self.assertEqual(nonce_return, expected_return, "Invalid nonce calculation in 2031") + expected_return = "X0fGZ4A6AAAAAAAA2038-04-27T03:44:32Z" + self.assertEqual(nonce_return, expected_return, "Invalid nonce calculation in 2038, 2k38 problem")