test: Clear role cache

This commit is contained in:
Suraj Shetty 2020-08-04 11:16:18 +05:30 committed by GitHub
parent 3c3b1037ea
commit 86a9ceb29b
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.cache().hdel('roles', frappe.session.user)
workflow = frappe.new_doc('Workflow')
workflow.workflow_name = 'Test ToDo'
workflow.document_type = 'ToDo'