mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
chore: remove EXTRA_TEST_RECORD_DEPENDENCIES
This commit is contained in:
@@ -13,8 +13,6 @@ from erpnext.accounts.doctype.account.account import (
|
||||
)
|
||||
from erpnext.stock import get_company_default_inventory_account, get_warehouse_account
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Company"]
|
||||
|
||||
|
||||
class TestAccount(IntegrationTestCase):
|
||||
def test_rename_account(self):
|
||||
|
||||
@@ -8,8 +8,6 @@ from frappe.tests import IntegrationTestCase
|
||||
from erpnext.accounts.doctype.journal_entry.test_journal_entry import make_journal_entry
|
||||
from erpnext.accounts.doctype.sales_invoice.test_sales_invoice import create_sales_invoice
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Cost Center", "Location", "Warehouse", "Department"]
|
||||
|
||||
|
||||
class TestAccountingDimension(IntegrationTestCase):
|
||||
def setUp(self):
|
||||
|
||||
@@ -12,8 +12,6 @@ from erpnext.accounts.doctype.accounting_dimension.test_accounting_dimension imp
|
||||
from erpnext.accounts.doctype.sales_invoice.test_sales_invoice import create_sales_invoice
|
||||
from erpnext.exceptions import InvalidAccountDimensionError, MandatoryAccountDimensionError
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Location", "Cost Center", "Department"]
|
||||
|
||||
|
||||
class TestAccountingDimensionFilter(unittest.TestCase):
|
||||
def setUp(self):
|
||||
|
||||
@@ -12,8 +12,6 @@ from erpnext.accounts.doctype.accounting_period.accounting_period import (
|
||||
)
|
||||
from erpnext.accounts.doctype.sales_invoice.test_sales_invoice import create_sales_invoice
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item"]
|
||||
|
||||
|
||||
class TestAccountingPeriod(IntegrationTestCase):
|
||||
def test_overlap(self):
|
||||
|
||||
@@ -13,7 +13,7 @@ from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_orde
|
||||
# On IntegrationTestCase, the doctype test records and all
|
||||
# link-field test record depdendencies are recursively loaded
|
||||
# Use these module variables to add/remove to/from that list
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
|
||||
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
|
||||
|
||||
|
||||
|
||||
@@ -21,8 +21,6 @@ from erpnext.accounts.doctype.purchase_invoice.test_purchase_invoice import make
|
||||
from erpnext.accounts.doctype.sales_invoice.test_sales_invoice import create_sales_invoice
|
||||
from erpnext.tests.utils import if_lending_app_installed
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item", "Cost Center"]
|
||||
|
||||
|
||||
class TestBankTransaction(IntegrationTestCase):
|
||||
def setUp(self):
|
||||
|
||||
@@ -7,8 +7,6 @@ from frappe.tests import IntegrationTestCase
|
||||
|
||||
from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_order
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item"]
|
||||
|
||||
|
||||
def test_create_test_data():
|
||||
frappe.set_user("Administrator")
|
||||
|
||||
@@ -19,8 +19,6 @@ from erpnext.accounts.doctype.sales_invoice.test_sales_invoice import (
|
||||
create_sales_invoice_against_cost_center,
|
||||
)
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Company", "Cost Center"]
|
||||
|
||||
|
||||
class TestDunning(IntegrationTestCase):
|
||||
@classmethod
|
||||
|
||||
@@ -12,8 +12,6 @@ from erpnext.accounts.doctype.opening_invoice_creation_tool.opening_invoice_crea
|
||||
get_temporary_opening_account,
|
||||
)
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Customer", "Supplier", "Accounting Dimension"]
|
||||
|
||||
|
||||
class TestOpeningInvoiceCreationTool(IntegrationTestCase):
|
||||
@classmethod
|
||||
|
||||
@@ -25,8 +25,6 @@ from erpnext.accounts.doctype.sales_invoice.test_sales_invoice import (
|
||||
from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_order
|
||||
from erpnext.setup.doctype.employee.test_employee import make_employee
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item", "Currency Exchange"]
|
||||
|
||||
|
||||
class TestPaymentEntry(IntegrationTestCase):
|
||||
def tearDown(self):
|
||||
|
||||
@@ -18,8 +18,6 @@ from erpnext.accounts.utils import get_fiscal_year
|
||||
from erpnext.buying.doctype.purchase_order.test_purchase_order import create_purchase_order
|
||||
from erpnext.stock.doctype.item.test_item import create_item
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item"]
|
||||
|
||||
|
||||
class TestPaymentReconciliation(IntegrationTestCase):
|
||||
def setUp(self):
|
||||
|
||||
@@ -19,8 +19,6 @@ from erpnext.buying.doctype.purchase_order.test_purchase_order import create_pur
|
||||
from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_order
|
||||
from erpnext.setup.utils import get_exchange_rate
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Currency Exchange", "Journal Entry", "Contact", "Address"]
|
||||
|
||||
PAYMENT_URL = "https://example.com/payment"
|
||||
|
||||
payment_gateways = [
|
||||
|
||||
@@ -391,6 +391,3 @@ def create_cost_center(cc_name):
|
||||
)
|
||||
costcenter.insert(ignore_if_duplicate=True)
|
||||
return costcenter.name
|
||||
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Customer", "Cost Center"]
|
||||
|
||||
@@ -11,8 +11,6 @@ from erpnext.accounts.doctype.pos_profile.pos_profile import (
|
||||
)
|
||||
from erpnext.stock.get_item_details import get_pos_profile
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item"]
|
||||
|
||||
|
||||
class TestPOSProfile(IntegrationTestCase):
|
||||
def test_pos_profile(self):
|
||||
|
||||
@@ -1522,9 +1522,6 @@ class TestPricingRule(IntegrationTestCase):
|
||||
pi.cancel()
|
||||
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["UTM Campaign"]
|
||||
|
||||
|
||||
def make_pricing_rule(**args):
|
||||
args = frappe._dict(args)
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ from erpnext.stock.doctype.serial_and_batch_bundle.test_serial_and_batch_bundle
|
||||
from erpnext.stock.doctype.stock_entry.test_stock_entry import get_qty_after_transaction
|
||||
from erpnext.stock.tests.test_utils import StockTestMixin
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item", "Cost Center", "Payment Term", "Payment Terms Template"]
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = ["Serial No"]
|
||||
|
||||
|
||||
|
||||
@@ -5016,9 +5016,6 @@ def create_sales_invoice_against_cost_center(**args):
|
||||
return si
|
||||
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Journal Entry", "Contact", "Address"]
|
||||
|
||||
|
||||
def get_outstanding_amount(against_voucher_type, against_voucher, account, party, party_type):
|
||||
bal = flt(
|
||||
frappe.db.sql(
|
||||
|
||||
@@ -7,8 +7,6 @@ from frappe.tests import IntegrationTestCase
|
||||
|
||||
from erpnext.accounts.doctype.share_transfer.share_transfer import ShareDontExists
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Share Type", "Shareholder"]
|
||||
|
||||
|
||||
class TestShareTransfer(IntegrationTestCase):
|
||||
def setUp(self):
|
||||
|
||||
@@ -20,8 +20,6 @@ from frappe.utils.data import (
|
||||
from erpnext.accounts.doctype.payment_entry.payment_entry import get_payment_entry
|
||||
from erpnext.accounts.doctype.subscription.subscription import get_prorata_factor
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ("UOM", "Item Group", "Item")
|
||||
|
||||
|
||||
class TestSubscription(IntegrationTestCase):
|
||||
def setUp(self):
|
||||
|
||||
@@ -12,8 +12,6 @@ from erpnext.accounts.doctype.payment_entry.payment_entry import get_payment_ent
|
||||
from erpnext.accounts.utils import get_fiscal_year
|
||||
from erpnext.buying.doctype.purchase_order.purchase_order import make_purchase_invoice
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Supplier Group", "Customer Group"]
|
||||
|
||||
|
||||
class TestTaxWithholdingCategory(IntegrationTestCase):
|
||||
@classmethod
|
||||
|
||||
@@ -10,8 +10,6 @@ from erpnext.accounts.report.balance_sheet.balance_sheet import execute
|
||||
COMPANY = "_Test Company 6"
|
||||
COMPANY_SHORT_NAME = "_TC6"
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Company"]
|
||||
|
||||
|
||||
class TestBalanceSheet(IntegrationTestCase):
|
||||
def test_balance_sheet(self):
|
||||
|
||||
@@ -12,8 +12,6 @@ from erpnext.accounts.report.sales_payment_summary.sales_payment_summary import
|
||||
get_mode_of_payments,
|
||||
)
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Sales Invoice"]
|
||||
|
||||
|
||||
class TestSalesPaymentSummary(IntegrationTestCase):
|
||||
@classmethod
|
||||
|
||||
@@ -1560,6 +1560,3 @@ def get_ordered_qty(item_code="_Test Item", warehouse="_Test Warehouse - _TC"):
|
||||
|
||||
def get_requested_qty(item_code="_Test Item", warehouse="_Test Warehouse - _TC"):
|
||||
return flt(frappe.db.get_value("Bin", {"item_code": item_code, "warehouse": warehouse}, "indented_qty"))
|
||||
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["BOM", "Item Price", "Warehouse"]
|
||||
|
||||
@@ -3,15 +3,12 @@
|
||||
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase, UnitTestCase
|
||||
|
||||
from erpnext.accounts.party import get_due_date
|
||||
from erpnext.controllers.website_list_for_contact import get_customers_suppliers
|
||||
from erpnext.exceptions import PartyDisabled
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Payment Term", "Payment Terms Template"]
|
||||
|
||||
|
||||
from frappe.tests import IntegrationTestCase
|
||||
|
||||
|
||||
class TestSupplier(IntegrationTestCase):
|
||||
|
||||
@@ -7,8 +7,6 @@ from frappe.model import mapper
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from frappe.utils import add_months, nowdate
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item"]
|
||||
|
||||
|
||||
class TestMapper(IntegrationTestCase):
|
||||
def test_map_docs(self):
|
||||
|
||||
@@ -14,9 +14,6 @@ def add_default_params(func, doctype):
|
||||
return partial(func, doctype=doctype, txt="", searchfield="name", start=0, page_len=20, filters=None)
|
||||
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item", "BOM", "Account"]
|
||||
|
||||
|
||||
class TestQueries(ERPNextTestSuite):
|
||||
# All tests are based on self.globalTestRecords[doctype]
|
||||
|
||||
|
||||
@@ -21,8 +21,6 @@ from erpnext.stock.doctype.stock_reconciliation.test_stock_reconciliation import
|
||||
create_stock_reconciliation,
|
||||
)
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item", "Quality Inspection Template"]
|
||||
|
||||
|
||||
class TestBOM(IntegrationTestCase):
|
||||
@timeout
|
||||
|
||||
@@ -13,7 +13,6 @@ from erpnext.manufacturing.doctype.bom_update_tool.bom_update_tool import (
|
||||
enqueue_update_cost,
|
||||
)
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["BOM"]
|
||||
|
||||
|
||||
class TestBOMUpdateLog(IntegrationTestCase):
|
||||
|
||||
@@ -11,7 +11,6 @@ from erpnext.manufacturing.doctype.bom_update_tool.bom_update_tool import enqueu
|
||||
from erpnext.manufacturing.doctype.production_plan.test_production_plan import make_bom
|
||||
from erpnext.stock.doctype.item.test_item import create_item
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["BOM"]
|
||||
|
||||
|
||||
class TestBOMUpdateTool(IntegrationTestCase):
|
||||
|
||||
@@ -26,8 +26,6 @@ from erpnext.stock.doctype.item.test_item import create_item
|
||||
from erpnext.stock.doctype.stock_entry.stock_entry_utils import make_stock_entry
|
||||
from erpnext.tests.utils import ERPNextTestSuite
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["UOM"]
|
||||
|
||||
|
||||
class TestJobCard(ERPNextTestSuite):
|
||||
@classmethod
|
||||
|
||||
@@ -7,8 +7,6 @@ from erpnext.manufacturing.doctype.job_card.job_card import OperationSequenceErr
|
||||
from erpnext.manufacturing.doctype.work_order.test_work_order import make_wo_order_test_record
|
||||
from erpnext.stock.doctype.item.test_item import make_item
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["UOM"]
|
||||
|
||||
|
||||
class TestRouting(IntegrationTestCase):
|
||||
@classmethod
|
||||
|
||||
@@ -34,8 +34,6 @@ from erpnext.stock.doctype.stock_entry import test_stock_entry
|
||||
from erpnext.stock.doctype.warehouse.test_warehouse import create_warehouse
|
||||
from erpnext.stock.utils import get_bin
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["BOM"]
|
||||
|
||||
|
||||
class TestWorkOrder(IntegrationTestCase):
|
||||
def setUp(self):
|
||||
|
||||
@@ -12,8 +12,6 @@ from erpnext.manufacturing.doctype.workstation.workstation import (
|
||||
check_if_within_operating_hours,
|
||||
)
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Warehouse"]
|
||||
|
||||
|
||||
class TestWorkstation(IntegrationTestCase):
|
||||
def test_validate_timings(self):
|
||||
|
||||
@@ -5,8 +5,6 @@ from frappe.tests import IntegrationTestCase
|
||||
|
||||
from erpnext.tests.utils import ReportFilters, ReportName, execute_script_report
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["BOM", "Item Price", "Warehouse"]
|
||||
|
||||
|
||||
class TestManufacturingReports(IntegrationTestCase):
|
||||
def setUp(self):
|
||||
|
||||
@@ -16,8 +16,6 @@ from erpnext.regional.report.uae_vat_201.uae_vat_201 import (
|
||||
)
|
||||
from erpnext.stock.doctype.warehouse.test_warehouse import get_warehouse_account
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Territory", "Customer Group", "Supplier Group", "Item"]
|
||||
|
||||
|
||||
class TestUaeVat201(TestCase):
|
||||
def setUp(self):
|
||||
|
||||
@@ -18,7 +18,6 @@ from erpnext.selling.doctype.customer.customer import (
|
||||
from erpnext.tests.utils import create_test_contact_and_address
|
||||
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = ["Price List"]
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Payment Term", "Payment Terms Template"]
|
||||
|
||||
|
||||
class TestCustomer(IntegrationTestCase):
|
||||
|
||||
@@ -6,8 +6,6 @@ from frappe.tests import IntegrationTestCase
|
||||
|
||||
from erpnext.controllers.queries import item_query
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item", "Customer", "Supplier"]
|
||||
|
||||
|
||||
def create_party_specific_item(**args):
|
||||
psi = frappe.new_doc("Party Specific Item")
|
||||
|
||||
@@ -11,8 +11,6 @@ from erpnext.controllers.accounts_controller import InvalidQtyError, update_chil
|
||||
from erpnext.selling.doctype.quotation.quotation import make_sales_order
|
||||
from erpnext.setup.utils import get_exchange_rate
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Product Bundle"]
|
||||
|
||||
|
||||
class TestQuotation(IntegrationTestCase):
|
||||
def test_update_child_quotation_add_item(self):
|
||||
|
||||
@@ -2834,9 +2834,6 @@ 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"))
|
||||
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Currency Exchange"]
|
||||
|
||||
|
||||
def make_sales_order_workflow():
|
||||
if frappe.db.exists("Workflow", "SO Test Workflow"):
|
||||
doc = frappe.get_doc("Workflow", "SO Test Workflow")
|
||||
|
||||
@@ -11,14 +11,6 @@ from erpnext.selling.report.payment_terms_status_for_sales_order.payment_terms_s
|
||||
)
|
||||
from erpnext.stock.doctype.item.test_item import create_item
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = [
|
||||
"Sales Order",
|
||||
"Item",
|
||||
"Sales Invoice",
|
||||
"Payment Terms Template",
|
||||
"Customer",
|
||||
]
|
||||
|
||||
|
||||
class TestPaymentTermsStatusForSalesOrder(IntegrationTestCase):
|
||||
def tearDown(self):
|
||||
|
||||
@@ -7,8 +7,6 @@ from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_orde
|
||||
from erpnext.selling.report.sales_order_analysis.sales_order_analysis import execute
|
||||
from erpnext.stock.doctype.item.test_item import create_item
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Sales Order", "Item", "Sales Invoice", "Delivery Note"]
|
||||
|
||||
|
||||
class TestSalesOrderAnalysis(IntegrationTestCase):
|
||||
def create_sales_order(self, transaction_date, do_not_save=False, do_not_submit=False):
|
||||
|
||||
@@ -19,7 +19,6 @@ IGNORE_TEST_RECORD_DEPENDENCIES = [
|
||||
"Salary Component",
|
||||
"Warehouse",
|
||||
]
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Fiscal Year"]
|
||||
|
||||
|
||||
class TestCompany(IntegrationTestCase):
|
||||
|
||||
@@ -2956,6 +2956,3 @@ def create_delivery_note(**args):
|
||||
dn.load_from_db()
|
||||
|
||||
return dn
|
||||
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Product Bundle"]
|
||||
|
||||
@@ -29,7 +29,6 @@ from erpnext.stock.doctype.stock_entry.stock_entry_utils import make_stock_entry
|
||||
from erpnext.stock.get_item_details import ItemDetailsCtx, get_item_details
|
||||
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = ["BOM"]
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Warehouse", "Item Group", "Item Tax Template", "Brand", "Item Attribute"]
|
||||
|
||||
|
||||
def make_item(item_code=None, properties=None, uoms=None, barcode=None):
|
||||
|
||||
@@ -22,7 +22,6 @@ from erpnext.stock.doctype.serial_and_batch_bundle.test_serial_and_batch_bundle
|
||||
)
|
||||
from erpnext.stock.serial_batch_bundle import SerialNoValuation
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Currency Exchange"]
|
||||
|
||||
|
||||
class TestLandedCostVoucher(IntegrationTestCase):
|
||||
|
||||
@@ -1191,6 +1191,3 @@ def make_material_request(**args):
|
||||
if not args.do_not_submit:
|
||||
mr.submit()
|
||||
return mr
|
||||
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Currency Exchange", "BOM"]
|
||||
|
||||
@@ -22,8 +22,6 @@ from erpnext.stock.doctype.stock_reconciliation.stock_reconciliation import (
|
||||
EmptyStockReconciliationItemsError,
|
||||
)
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item", "Sales Invoice", "Stock Entry", "Batch"]
|
||||
|
||||
|
||||
class TestPickList(IntegrationTestCase):
|
||||
def test_pick_list_picks_warehouse_for_each_item(self):
|
||||
|
||||
@@ -5578,6 +5578,3 @@ def make_purchase_receipt(**args):
|
||||
pr.load_from_db()
|
||||
|
||||
return pr
|
||||
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["BOM", "Item Price", "Location"]
|
||||
|
||||
@@ -21,8 +21,6 @@ from erpnext.stock.doctype.stock_entry.stock_entry_utils import make_stock_entry
|
||||
from erpnext.stock.doctype.stock_entry.test_stock_entry import make_serialized_item
|
||||
from erpnext.stock.doctype.warehouse.test_warehouse import create_warehouse
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item"]
|
||||
|
||||
|
||||
class TestSerialNo(IntegrationTestCase):
|
||||
def tearDown(self):
|
||||
|
||||
@@ -7,7 +7,7 @@ from frappe.tests import IntegrationTestCase
|
||||
# On IntegrationTestCase, the doctype test records and all
|
||||
# link-field test record depdendencies are recursively loaded
|
||||
# Use these module variables to add/remove to/from that list
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
|
||||
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from frappe.tests import IntegrationTestCase
|
||||
# On IntegrationTestCase, the doctype test records and all
|
||||
# link-field test record depdendencies are recursively loaded
|
||||
# Use these module variables to add/remove to/from that list
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
|
||||
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
|
||||
|
||||
|
||||
|
||||
@@ -1976,6 +1976,3 @@ def set_valuation_method(item_code, valuation_method):
|
||||
update_entries_after(
|
||||
{"item_code": item_code, "warehouse": warehouse.name}, allow_negative_stock=1
|
||||
)
|
||||
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Item", "Warehouse"]
|
||||
|
||||
@@ -3,8 +3,6 @@ from frappe.tests import IntegrationTestCase
|
||||
|
||||
from erpnext.stock.get_item_details import get_item_details
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Customer", "Supplier", "Item", "Price List", "Item Price"]
|
||||
|
||||
|
||||
class TestGetItemDetail(IntegrationTestCase):
|
||||
def test_get_item_detail_purchase_order(self):
|
||||
|
||||
@@ -5,8 +5,6 @@ from frappe.tests import IntegrationTestCase
|
||||
|
||||
from erpnext import encode_company_abbr
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Company"]
|
||||
|
||||
|
||||
class TestInit(IntegrationTestCase):
|
||||
def test_encode_company_abbr(self):
|
||||
|
||||
Reference in New Issue
Block a user