refactor: replace IntegrationTestCase with ERPNextTestCase repo-wide

- import ERPNextTestSuite
 - use it on test class
This commit is contained in:
ruthra kumar
2026-01-20 10:12:06 +05:30
parent 4027b82714
commit 33f4791698
320 changed files with 854 additions and 833 deletions

View File

@@ -2,12 +2,13 @@
import frappe
from frappe.desk.form.load import getdoc
from frappe.tests import IntegrationTestCase
from frappe.www.printview import get_html_and_style
from erpnext.tests.utils import ERPNextTestSuite
class TestFormLoads(IntegrationTestCase):
@IntegrationTestCase.change_settings("Print Settings", {"allow_print_for_cancelled": 1})
class TestFormLoads(ERPNextTestSuite):
@ERPNextTestSuite.change_settings("Print Settings", {"allow_print_for_cancelled": 1})
def test_load(self):
erpnext_modules = frappe.get_all("Module Def", filters={"app_name": "erpnext"}, pluck="name")
doctypes = frappe.get_all(