travis fix (#11841)
diff --git a/erpnext/assets/doctype/asset_maintenance/test_asset_maintenance.py b/erpnext/assets/doctype/asset_maintenance/test_asset_maintenance.py
index 57efd5b..3be3dcf 100644
--- a/erpnext/assets/doctype/asset_maintenance/test_asset_maintenance.py
+++ b/erpnext/assets/doctype/asset_maintenance/test_asset_maintenance.py
@@ -88,17 +88,18 @@
if not frappe.db.exists("Asset Maintenance Team", "Team Awesome"):
frappe.get_doc({
"doctype": "Asset Maintenance Team",
+ "maintenance_manager": "marcus@abc.com",
"maintenance_team_name": "Team Awesome",
"company": "_Test Company",
"maintenance_team_members": get_maintenance_team(user_list)
}).insert()
def get_maintenance_team(user_list):
- return [{"team_member": user_list[0],
- "full_name": user_list[0],
+ return [{"team_member": user,
+ "full_name": user,
"maintenance_role": "Technician"
}
- ]
+ for user in user_list[1:]]
def get_maintenance_tasks():
return [{"maintenance_task": "Change Oil",