test: Try committing after Role creation

This commit is contained in:
Suraj Shetty 2020-08-06 09:33:39 +05:30 committed by GitHub
parent c4aa9f5f2c
commit 4f37f9a452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'