Test check_credit_limit using a record as origin
Since 9bbe5251be9e the format method of warning enforces the usage of record.
This commit is contained in:
@@ -72,7 +72,7 @@ class AccountCreditLimitTestCase(CompanyTestMixin, ModuleTestCase):
|
||||
self.assertRaises(UserError, party.check_credit_limit,
|
||||
Decimal(1), company)
|
||||
self.assertRaises(UserWarning, party.check_credit_limit,
|
||||
Decimal(1), company, 'test')
|
||||
Decimal(1), company, party)
|
||||
party.credit_limit_amount = Decimal(200)
|
||||
party.save()
|
||||
party.check_credit_limit(Decimal(1), company)
|
||||
@@ -80,7 +80,7 @@ class AccountCreditLimitTestCase(CompanyTestMixin, ModuleTestCase):
|
||||
self.assertRaises(UserError, party.check_credit_limit,
|
||||
Decimal(150), company)
|
||||
self.assertRaises(UserWarning, party.check_credit_limit,
|
||||
Decimal(150), company, 'test')
|
||||
Decimal(150), company, party)
|
||||
|
||||
|
||||
del ModuleTestCase
|
||||
|
||||
Reference in New Issue
Block a user