From 223737cbe2f2f3d9f08f06d809e58b708af5b786 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Fri, 20 Jun 2025 20:34:33 +0530 Subject: [PATCH] refactor(test): fix flaky test setup for opening invoice creation --- .../test_opening_invoice_creation_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/opening_invoice_creation_tool/test_opening_invoice_creation_tool.py b/erpnext/accounts/doctype/opening_invoice_creation_tool/test_opening_invoice_creation_tool.py index 70f91cdab55..bfe0bd13e90 100644 --- a/erpnext/accounts/doctype/opening_invoice_creation_tool/test_opening_invoice_creation_tool.py +++ b/erpnext/accounts/doctype/opening_invoice_creation_tool/test_opening_invoice_creation_tool.py @@ -16,10 +16,10 @@ from erpnext.tests.utils import ERPNextTestSuite class TestOpeningInvoiceCreationTool(ERPNextTestSuite): @classmethod def setUpClass(cls): + super().setUpClass() if not frappe.db.exists("Company", "_Test Opening Invoice Company"): make_company() create_dimension() - return super().setUpClass() def make_invoices( self,