diff --git a/tests/test_account.py b/tests/test_account.py index 68b2bf7..fe20bcf 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -517,8 +517,8 @@ class AccountTestCase(unittest.TestCase): with self.app.app_context(): cash_account: Account = Account.find_by_code(cash.code) self.assertIsNotNone(cash_account) - self.assertNotEqual(cash_account.created_at, - cash_account.updated_at) + self.assertLess(cash_account.created_at, + cash_account.updated_at) def test_created_updated_by(self) -> None: """Tests the created-by and updated-by record. diff --git a/tests/test_currency.py b/tests/test_currency.py index a657462..a0d2a6c 100644 --- a/tests/test_currency.py +++ b/tests/test_currency.py @@ -463,8 +463,8 @@ class CurrencyTestCase(unittest.TestCase): with self.app.app_context(): zza_currency: Currency = db.session.get(Currency, zza.code) self.assertIsNotNone(zza_currency) - self.assertNotEqual(zza_currency.created_at, - zza_currency.updated_at) + self.assertLess(zza_currency.created_at, + zza_currency.updated_at) def test_created_updated_by(self) -> None: """Tests the created-by and updated-by record.