refactor(test): remove redundant tearDown, tearDownClass and rollback

This commit is contained in:
ruthra kumar
2026-01-30 14:31:29 +05:30
parent 8090caa026
commit 12ae84401a
88 changed files with 0 additions and 332 deletions

View File

@@ -140,8 +140,6 @@ class TestMaintenanceSchedule(ERPNextTestSuite):
serial_nos = get_serial_nos_from_schedule(mvi.item_name, ms.name)
self.assertEqual(serial_nos, ["TEST001", "TEST002"])
frappe.db.rollback()
def test_schedule_with_serials(self):
# Checks whether serials are automatically updated when changing in items table.
# Also checks if other fields trigger generate schdeule if changed in items table.
@@ -170,8 +168,6 @@ class TestMaintenanceSchedule(ERPNextTestSuite):
ms.save()
self.assertEqual(len(ms.schedules), 2)
frappe.db.rollback()
def make_serial_item_with_serial(self, item_code):
serial_item_doc = create_item(item_code, is_stock_item=1)