Revised the test_update_not_modified tests to be more specific in the AccountTestCase and CurrencyTestCase test cases.
This commit is contained in:
parent
a4c89f1494
commit
d9c08568cf
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user