mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-28 06:08:25 +00:00
refactor: replace IntegrationTestCase with ERPNextTestCase repo-wide
- import ERPNextTestSuite - use it on test class
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
import unittest
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from frappe.utils import format_date
|
||||
from frappe.utils.data import add_days, formatdate, today
|
||||
|
||||
@@ -13,9 +12,10 @@ from erpnext.maintenance.doctype.maintenance_schedule.maintenance_schedule impor
|
||||
)
|
||||
from erpnext.stock.doctype.item.test_item import create_item
|
||||
from erpnext.stock.doctype.stock_entry.test_stock_entry import make_serialized_item
|
||||
from erpnext.tests.utils import ERPNextTestSuite
|
||||
|
||||
|
||||
class TestMaintenanceSchedule(IntegrationTestCase):
|
||||
class TestMaintenanceSchedule(ERPNextTestSuite):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
|
||||
@@ -3,11 +3,12 @@
|
||||
import unittest
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from frappe.utils.data import today
|
||||
|
||||
from erpnext.tests.utils import ERPNextTestSuite
|
||||
|
||||
class TestMaintenanceVisit(IntegrationTestCase):
|
||||
|
||||
class TestMaintenanceVisit(ERPNextTestSuite):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user