mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
refactor: Use IntegrationTestCase in multiple files
Signed-off-by: David <dgx.arnold@gmail.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# See license.txt
|
||||
|
||||
import unittest
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from frappe.utils import format_date
|
||||
from frappe.utils.data import add_days, formatdate, today
|
||||
|
||||
@@ -17,7 +17,7 @@ from erpnext.stock.doctype.stock_entry.test_stock_entry import make_serialized_i
|
||||
# test_records = frappe.get_test_records('Maintenance Schedule')
|
||||
|
||||
|
||||
class TestMaintenanceSchedule(unittest.TestCase):
|
||||
class TestMaintenanceSchedule(IntegrationTestCase):
|
||||
def test_events_should_be_created_and_deleted(self):
|
||||
ms = make_maintenance_schedule()
|
||||
ms.generate_schedule()
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# See license.txt
|
||||
|
||||
import unittest
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from frappe.utils.data import today
|
||||
|
||||
# test_records = frappe.get_test_records('Maintenance Visit')
|
||||
|
||||
|
||||
class TestMaintenanceVisit(unittest.TestCase):
|
||||
class TestMaintenanceVisit(IntegrationTestCase):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user