mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
refactor: clarify test record module iface (treewide)
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user