mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
refactor(test): make budget deterministic
This commit is contained in:
@@ -17,12 +17,6 @@ from erpnext.tests.utils import ERPNextTestSuite
|
|||||||
|
|
||||||
|
|
||||||
class TestBudget(ERPNextTestSuite):
|
class TestBudget(ERPNextTestSuite):
|
||||||
@classmethod
|
|
||||||
def setUpClass(cls):
|
|
||||||
super().setUpClass()
|
|
||||||
cls.make_monthly_distribution()
|
|
||||||
cls.make_projects()
|
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
frappe.db.set_single_value("Accounts Settings", "use_legacy_budget_controller", False)
|
frappe.db.set_single_value("Accounts Settings", "use_legacy_budget_controller", False)
|
||||||
self.company = "_Test Company"
|
self.company = "_Test Company"
|
||||||
|
|||||||
@@ -250,6 +250,8 @@ class ERPNextTestSuite(unittest.TestCase):
|
|||||||
cls.make_quality_inspection_template()
|
cls.make_quality_inspection_template()
|
||||||
cls.make_employees()
|
cls.make_employees()
|
||||||
cls.make_brand()
|
cls.make_brand()
|
||||||
|
cls.make_monthly_distribution()
|
||||||
|
cls.make_projects()
|
||||||
cls.update_selling_settings()
|
cls.update_selling_settings()
|
||||||
cls.update_stock_settings()
|
cls.update_stock_settings()
|
||||||
cls.update_system_settings()
|
cls.update_system_settings()
|
||||||
|
|||||||
Reference in New Issue
Block a user