From ede2a68afd49f2b5943953afd688f429681adc66 Mon Sep 17 00:00:00 2001 From: Shllokkk Date: Sun, 12 Jul 2026 12:32:23 +0530 Subject: [PATCH] fix: set customer group in inactive customers report test setup --- .../report/inactive_customers/test_inactive_customers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erpnext/selling/report/inactive_customers/test_inactive_customers.py b/erpnext/selling/report/inactive_customers/test_inactive_customers.py index b5f418c9910..575b7a8fe41 100644 --- a/erpnext/selling/report/inactive_customers/test_inactive_customers.py +++ b/erpnext/selling/report/inactive_customers/test_inactive_customers.py @@ -11,7 +11,10 @@ from erpnext.selling.report.inactive_customers.inactive_customers import execute class TestInactiveCustomers(FrappeTestCase): def setUp(self): - self.customer = frappe.get_doc(doctype="Customer", customer_name="_Test Inactive Customer").insert() + self.customer = frappe.new_doc("Customer") + self.customer.customer_name = "_Test Inactive Customer" + self.customer.customer_group = "_Test Customer Group" + self.customer.insert() self.last_order_date = add_days(today(), -120) so = make_sales_order( customer=self.customer.name,