mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-25 06:02:09 +01:00
refactor(test): fix flaky test setup for opening invoice creation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user