From 7775593a7a24ae1d89a4624e025c8b10f66aeb6a Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Wed, 12 Aug 2026 01:41:01 +0200 Subject: [PATCH] test: import change_settings --- erpnext/controllers/tests/test_distributed_discount.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/controllers/tests/test_distributed_discount.py b/erpnext/controllers/tests/test_distributed_discount.py index d6d88575f27..d87ea1b07b0 100644 --- a/erpnext/controllers/tests/test_distributed_discount.py +++ b/erpnext/controllers/tests/test_distributed_discount.py @@ -1,4 +1,4 @@ -from frappe.tests.utils import FrappeTestCase +from frappe.tests.utils import FrappeTestCase, change_settings from erpnext.accounts.test.accounts_mixin import AccountsTestMixin from erpnext.controllers.taxes_and_totals import calculate_taxes_and_totals @@ -60,7 +60,7 @@ class TestTaxesAndTotals(AccountsTestMixin, FrappeTestCase): self.assertAlmostEqual(so.net_total, 1272.73, places=2) self.assertEqual(so.grand_total, 1400) - @ERPNextTestSuite.change_settings("Selling Settings", {"allow_multiple_items": 1}) + @change_settings("Selling Settings", {"allow_multiple_items": 1}) def test_distributed_discount_amount_with_rounding_adjustment(self): so = make_sales_order(do_not_save=1) so.apply_discount_on = "Net Total"