mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[ADD] disable default_log_exception before assertraises
This commit is contained in:
@@ -203,6 +203,7 @@ class TestAccountJournalPeriodClose(common.TransactionCase):
|
||||
create_journal_period(self, period_id, journal_id, context)
|
||||
# I check if the exception is correctly raised at adding both same
|
||||
# journal on a period
|
||||
self.cr._default_log_exceptions = False
|
||||
self.assertRaises(IntegrityError,
|
||||
create_journal_period,
|
||||
self, period_id, journal_id, context)
|
||||
|
||||
Reference in New Issue
Block a user