fix: internal customer util returns str not doc object
diff --git a/erpnext/stock/doctype/delivery_note/test_delivery_note.py b/erpnext/stock/doctype/delivery_note/test_delivery_note.py
index e6736b2..b333a6b 100644
--- a/erpnext/stock/doctype/delivery_note/test_delivery_note.py
+++ b/erpnext/stock/doctype/delivery_note/test_delivery_note.py
@@ -433,7 +433,7 @@
 		from erpnext.selling.doctype.customer.test_customer import create_internal_customer
 
 		company = frappe.db.get_value('Warehouse', 'Stores - TCP1', 'company')
-		customer = create_internal_customer(
+		customer_name = create_internal_customer(
 			customer_name="_Test Internal Customer 2",
 			represents_company="_Test Company with perpetual inventory",
 			allowed_to_interact_with="_Test Company with perpetual inventory"
@@ -454,7 +454,7 @@
 		dn = create_delivery_note(
 			item_code="_Test Product Bundle Item",
 			company="_Test Company with perpetual inventory",
-			customer=customer.name,
+			customer=customer_name,
 			cost_center = 'Main - TCP1',
 			expense_account = "Cost of Goods Sold - TCP1",
 			do_not_submit=True,