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

@@ -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")

View File

@@ -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

View File

@@ -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):

View File

@@ -5,4 +5,4 @@ import frappe
test_records = frappe.get_test_records("Sales Partner")
test_ignore = ["Item Group"]
IGNORE_TEST_RECORD_DEPENDENCIES = ["Item Group"]

View File

@@ -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"]

View File

@@ -5,4 +5,4 @@ import frappe
test_records = frappe.get_test_records("Territory")
test_ignore = ["Item Group"]
IGNORE_TEST_RECORD_DEPENDENCIES = ["Item Group"]