mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
refactor: replace IntegrationTestCase with ERPNextTestCase repo-wide
- import ERPNextTestSuite - use it on test class
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user