refactor: clarify test record module iface (treewide)

This commit is contained in:
David
2024-10-10 13:26:26 +02:00
parent 2fc4f86191
commit ed5bead87d
52 changed files with 69 additions and 57 deletions

View File

@@ -18,8 +18,8 @@ from erpnext.selling.doctype.customer.customer import (
)
from erpnext.tests.utils import create_test_contact_and_address
test_ignore = ["Price List"]
test_dependencies = ["Payment Term", "Payment Terms Template"]
IGNORE_TEST_RECORD_DEPENDENCIES = ["Price List"]
EXTRA_TEST_RECORD_DEPENDENCIES = ["Payment Term", "Payment Terms Template"]
test_records = frappe.get_test_records("Customer")

View File

@@ -6,7 +6,7 @@ from frappe.tests import IntegrationTestCase, UnitTestCase
from erpnext.controllers.queries import item_query
test_dependencies = ["Item", "Customer", "Supplier"]
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item", "Customer", "Supplier"]
def create_party_specific_item(**args):

View File

@@ -7,7 +7,7 @@ from frappe.utils import add_days, add_months, flt, getdate, nowdate
from erpnext.controllers.accounts_controller import InvalidQtyError
test_dependencies = ["Product Bundle"]
EXTRA_TEST_RECORD_DEPENDENCIES = ["Product Bundle"]
class UnitTestQuotation(UnitTestCase):

View File

@@ -2349,7 +2349,7 @@ def get_reserved_qty(item_code="_Test Item", warehouse="_Test Warehouse - _TC"):
return flt(frappe.db.get_value("Bin", {"item_code": item_code, "warehouse": warehouse}, "reserved_qty"))
test_dependencies = ["Currency Exchange"]
EXTRA_TEST_RECORD_DEPENDENCIES = ["Currency Exchange"]
def make_sales_order_workflow():