refactor: import from new location

This commit is contained in:
David
2024-10-06 11:54:52 +02:00
parent 13eb3c5c14
commit bda415a83d
142 changed files with 423 additions and 384 deletions

View File

@@ -1,9 +1,9 @@
from frappe.tests.utils import FrappeTestCase
from frappe.tests import IntegrationTestCase
from erpnext.utilities.activation import get_level
class TestActivation(FrappeTestCase):
class TestActivation(IntegrationTestCase):
def test_activation(self):
levels = get_level()
self.assertTrue(levels)

View File

@@ -1,5 +1,5 @@
import frappe
from frappe.tests.utils import FrappeTestCase
from frappe.tests import IntegrationTestCase
INDEXED_FIELDS = {
"Bin": ["item_code"],
@@ -9,7 +9,7 @@ INDEXED_FIELDS = {
}
class TestPerformance(FrappeTestCase):
class TestPerformance(IntegrationTestCase):
def test_ensure_indexes(self):
# These fields are not explicitly indexed BUT they are prefix in some
# other composite index. If those are removed this test should be

View File

@@ -2,12 +2,12 @@
import frappe
from frappe.desk.form.load import getdoc
from frappe.tests.utils import FrappeTestCase, change_settings
from frappe.tests import IntegrationTestCase
from frappe.www.printview import get_html_and_style
class TestFormLoads(FrappeTestCase):
@change_settings("Print Settings", {"allow_print_for_cancelled": 1})
class TestFormLoads(IntegrationTestCase):
@IntegrationTestCase.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(