From 3a5869e525bdb163bbf2e57eab39560b4504fe60 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Thu, 29 Jan 2026 10:57:54 +0530 Subject: [PATCH] refactor(test): make budget deterministic --- erpnext/accounts/doctype/budget/test_budget.py | 6 ------ erpnext/tests/utils.py | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/erpnext/accounts/doctype/budget/test_budget.py b/erpnext/accounts/doctype/budget/test_budget.py index 866f9cb322d..d3dc7476c98 100644 --- a/erpnext/accounts/doctype/budget/test_budget.py +++ b/erpnext/accounts/doctype/budget/test_budget.py @@ -17,12 +17,6 @@ from erpnext.tests.utils import ERPNextTestSuite class TestBudget(ERPNextTestSuite): - @classmethod - def setUpClass(cls): - super().setUpClass() - cls.make_monthly_distribution() - cls.make_projects() - def setUp(self): frappe.db.set_single_value("Accounts Settings", "use_legacy_budget_controller", False) self.company = "_Test Company" diff --git a/erpnext/tests/utils.py b/erpnext/tests/utils.py index 96222afa405..0d15226842a 100644 --- a/erpnext/tests/utils.py +++ b/erpnext/tests/utils.py @@ -250,6 +250,8 @@ class ERPNextTestSuite(unittest.TestCase): cls.make_quality_inspection_template() cls.make_employees() cls.make_brand() + cls.make_monthly_distribution() + cls.make_projects() cls.update_selling_settings() cls.update_stock_settings() cls.update_system_settings()