From b114d9f6215f9d70a05e192abc90cc4e487a914b Mon Sep 17 00:00:00 2001 From: Himanshu Warekar Date: Thu, 6 Jun 2019 12:14:19 +0530 Subject: [PATCH] test: fix test case --- .../doctype/quality_goal/test_quality_goal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/quality_management/doctype/quality_goal/test_quality_goal.py b/erpnext/quality_management/doctype/quality_goal/test_quality_goal.py index 34cd87b2d4e..d77187aaa19 100644 --- a/erpnext/quality_management/doctype/quality_goal/test_quality_goal.py +++ b/erpnext/quality_management/doctype/quality_goal/test_quality_goal.py @@ -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