test: fix test case

This commit is contained in:
Himanshu Warekar 2019-06-06 12:14:19 +05:30
parent 9f458e3413
commit b114d9f621

View File

@ -33,7 +33,7 @@ def create_goal():
goal_exist = frappe.db.exists("Quality Goal", {"goal": goal.goal})
if not goal_exist:
goal.insert()
return goal
return goal.name
else:
return goal_exist