mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 05:29:18 +00:00
refactor: import from new location
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user