test: Clear role cache
This commit is contained in:
parent
3c3b1037ea
commit
86a9ceb29b
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.cache().hdel('roles', frappe.session.user)
|
||||
workflow = frappe.new_doc('Workflow')
|
||||
workflow.workflow_name = 'Test ToDo'
|
||||
workflow.document_type = 'ToDo'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue