mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00: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):
|
class TestOpeningInvoiceCreationTool(ERPNextTestSuite):
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
|
super().setUpClass()
|
||||||
if not frappe.db.exists("Company", "_Test Opening Invoice Company"):
|
if not frappe.db.exists("Company", "_Test Opening Invoice Company"):
|
||||||
make_company()
|
make_company()
|
||||||
create_dimension()
|
create_dimension()
|
||||||
return super().setUpClass()
|
|
||||||
|
|
||||||
def make_invoices(
|
def make_invoices(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user