mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-15 01:43:10 +00:00
refactor: clarify test record module iface (treewide)
This commit is contained in:
@@ -13,8 +13,14 @@ from erpnext.accounts.doctype.account.chart_of_accounts.chart_of_accounts import
|
||||
)
|
||||
from erpnext.setup.doctype.company.company import get_default_company_address
|
||||
|
||||
test_ignore = ["Account", "Cost Center", "Payment Terms Template", "Salary Component", "Warehouse"]
|
||||
test_dependencies = ["Fiscal Year"]
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = [
|
||||
"Account",
|
||||
"Cost Center",
|
||||
"Payment Terms Template",
|
||||
"Salary Component",
|
||||
"Warehouse",
|
||||
]
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Fiscal Year"]
|
||||
test_records = frappe.get_test_records("Company")
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
test_ignore = ["Price List"]
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = ["Price List"]
|
||||
|
||||
|
||||
import frappe
|
||||
|
||||
@@ -5,7 +5,7 @@ import unittest
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
|
||||
test_ignore = ["Leave Block List"]
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = ["Leave Block List"]
|
||||
|
||||
|
||||
class TestDepartment(IntegrationTestCase):
|
||||
|
||||
@@ -5,4 +5,4 @@ import frappe
|
||||
|
||||
test_records = frappe.get_test_records("Sales Partner")
|
||||
|
||||
test_ignore = ["Item Group"]
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = ["Item Group"]
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
test_dependencies = ["Employee"]
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Employee"]
|
||||
|
||||
import frappe
|
||||
|
||||
test_records = frappe.get_test_records("Sales Person")
|
||||
|
||||
test_ignore = ["Item Group"]
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = ["Item Group"]
|
||||
|
||||
@@ -5,4 +5,4 @@ import frappe
|
||||
|
||||
test_records = frappe.get_test_records("Territory")
|
||||
|
||||
test_ignore = ["Item Group"]
|
||||
IGNORE_TEST_RECORD_DEPENDENCIES = ["Item Group"]
|
||||
|
||||
Reference in New Issue
Block a user