From fd565b8ce62750699287a442e53aff7186a5a826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 14 Dec 2025 14:11:30 +0100 Subject: [PATCH] Test check_credit_limit using a record as origin Since 9bbe5251be9e the format method of warning enforces the usage of record. --- modules/account_credit_limit/tests/test_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/account_credit_limit/tests/test_module.py b/modules/account_credit_limit/tests/test_module.py index b0e30df1f0..6471d9b0ff 100644 --- a/modules/account_credit_limit/tests/test_module.py +++ b/modules/account_credit_limit/tests/test_module.py @@ -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