test(inactive customers): use FrappeTestCase

This commit is contained in:
ruthra kumar
2026-06-10 10:16:32 +05:30
parent 30efbf8c9b
commit bd41e741be

View File

@@ -2,14 +2,14 @@
# For license information, please see license.txt
import frappe
from frappe.tests.utils import FrappeTestCase
from frappe.utils import add_days, getdate, today
from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_order
from erpnext.selling.report.inactive_customers.inactive_customers import execute
from erpnext.tests.utils import ERPNextTestSuite
class TestInactiveCustomers(ERPNextTestSuite):
class TestInactiveCustomers(FrappeTestCase):
def setUp(self):
self.customer = frappe.get_doc(doctype="Customer", customer_name="_Test Inactive Customer").insert()
self.last_order_date = add_days(today(), -120)