fix(test): do not use is_group enabled customer group in test

(cherry picked from commit 75fa2b2277)
This commit is contained in:
khushi8112
2026-03-31 15:29:22 +05:30
parent 7a227e048e
commit 97684d3dae
4 changed files with 5 additions and 5 deletions

View File

@@ -398,7 +398,7 @@ def add_vouchers(gl_account="_Test Bank - _TC"):
frappe.get_doc( frappe.get_doc(
{ {
"doctype": "Customer", "doctype": "Customer",
"customer_group": "All Customer Groups", "customer_group": "Individual",
"customer_type": "Company", "customer_type": "Company",
"customer_name": "Poore Simon's", "customer_name": "Poore Simon's",
} }
@@ -429,7 +429,7 @@ def add_vouchers(gl_account="_Test Bank - _TC"):
frappe.get_doc( frappe.get_doc(
{ {
"doctype": "Customer", "doctype": "Customer",
"customer_group": "All Customer Groups", "customer_group": "Individual",
"customer_type": "Company", "customer_type": "Company",
"customer_name": "Fayva", "customer_name": "Fayva",
} }

View File

@@ -209,7 +209,7 @@ def make_customer(customer=None):
{ {
"doctype": "Customer", "doctype": "Customer",
"customer_name": customer_name, "customer_name": customer_name,
"customer_group": "All Customer Groups", "customer_group": "Individual",
"customer_type": "Company", "customer_type": "Company",
"territory": "All Territories", "territory": "All Territories",
} }

View File

@@ -66,7 +66,7 @@ class TestTaxes(unittest.TestCase):
{ {
"doctype": "Customer", "doctype": "Customer",
"customer_name": uuid4(), "customer_name": uuid4(),
"customer_group": "All Customer Groups", "customer_group": "Individual",
} }
).insert() ).insert()
self.supplier = frappe.get_doc( self.supplier = frappe.get_doc(

View File

@@ -177,7 +177,7 @@ def create_shipment_customer(customer_name):
customer = frappe.new_doc("Customer") customer = frappe.new_doc("Customer")
customer.customer_name = customer_name customer.customer_name = customer_name
customer.customer_type = "Company" customer.customer_type = "Company"
customer.customer_group = "All Customer Groups" customer.customer_group = "Individual"
customer.territory = "All Territories" customer.territory = "All Territories"
customer.insert() customer.insert()
return customer return customer