details: https://code.tryton.org/tryton/commit/7dd08cf1ab62
branch: default
user: Cédric Krier <[email protected]>
date: Sun Dec 14 14:11:30 2025 +0100
description:
Test check_credit_limit using a record as origin
Since 9bbe5251be9e the format method of warning enforces the usage of
record.
diffstat:
modules/account_credit_limit/tests/test_module.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r cde086016dd5 -r 7dd08cf1ab62
modules/account_credit_limit/tests/test_module.py
--- a/modules/account_credit_limit/tests/test_module.py Sun Dec 14 13:57:42
2025 +0100
+++ b/modules/account_credit_limit/tests/test_module.py Sun Dec 14 14:11:30
2025 +0100
@@ -72,7 +72,7 @@
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 @@
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