test: Try committing after Role creation
This commit is contained in:
parent
c4aa9f5f2c
commit
4f37f9a452
1 changed files with 1 additions and 0 deletions
|
|
@ -126,6 +126,7 @@ def create_todo_workflow():
|
|||
else:
|
||||
frappe.get_doc(dict(doctype='Role',
|
||||
role_name='Test Approver')).insert(ignore_if_duplicate=True)
|
||||
frappe.db.commit()
|
||||
frappe.cache().hdel('roles', frappe.session.user)
|
||||
workflow = frappe.new_doc('Workflow')
|
||||
workflow.workflow_name = 'Test ToDo'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue