From 56a5ddae8f807c9bda5b8a70cc855989a17e2f90 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Mon, 2 Feb 2026 19:18:00 +0530 Subject: [PATCH] refactor(test): make item wise inventory account deterministic --- .../controllers/tests/test_item_wise_inventory_account.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/controllers/tests/test_item_wise_inventory_account.py b/erpnext/controllers/tests/test_item_wise_inventory_account.py index 371cb75f7f4..2f45ea31466 100644 --- a/erpnext/controllers/tests/test_item_wise_inventory_account.py +++ b/erpnext/controllers/tests/test_item_wise_inventory_account.py @@ -273,7 +273,7 @@ class TestItemWiseInventoryAccount(ERPNextTestSuite): } for row in items: - self.make_item_group(items[row]["item_group"]) + self._make_item_group(items[row]["item_group"]) inventory_account_dict = frappe._dict() for item_name, item_data in items.items(): @@ -357,7 +357,7 @@ class TestItemWiseInventoryAccount(ERPNextTestSuite): } for row in items: - self.make_item_group(items[row]["item_group"]) + self._make_item_group(items[row]["item_group"]) inventory_account_dict = frappe._dict() for item_name, item_data in items.items(): @@ -451,7 +451,7 @@ class TestItemWiseInventoryAccount(ERPNextTestSuite): self.assertEqual(sle_value[0].value, gl_value, f"GL Entry not created for {item_code} correctly") - def make_item_group(self, item_name): + def _make_item_group(self, item_name): if not frappe.db.exists("Item Group", item_name): item_group = frappe.get_doc( {