fix: failing tests
This commit is contained in:
parent
6736a89b4e
commit
1e550d3e46
@ -430,9 +430,11 @@ def create_issue_and_communication(issue_creation, first_responded_on):
|
|||||||
|
|
||||||
return issue
|
return issue
|
||||||
|
|
||||||
def make_issue(creation=None, customer=None, index=0, priority=None, issue_type=None, do_not_insert=False):
|
def make_issue(creation=None, customer=None, index=0, priority=None, issue_type=None):
|
||||||
if not frappe.db.exists('Issue Type', issue_type):
|
if issue_type and not frappe.db.exists('Issue Type', issue_type):
|
||||||
frappe.get_doc(dict(doctype='Issue Type', name=issue_type)).insert()
|
doc = frappe.new_doc('Issue Type')
|
||||||
|
doc.name = issue_type
|
||||||
|
doc.insert()
|
||||||
|
|
||||||
issue = frappe.get_doc({
|
issue = frappe.get_doc({
|
||||||
"doctype": "Issue",
|
"doctype": "Issue",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user