Unauthorized Exception while testing

obj.invokeFactory() throws Unauthorized Exception while testing using unittest class. What's the solution to authorize?


We need more information to help you. Please read https://docs.plone.org/askforhelp.html#asking-for-help-in-online-chat on what we need, thanks!


make sure to login and use setRoles to grant the logged in users the necessary permissions. ('Manager' to be really sure)
see https://docs.plone.org/external/plone.app.testing/docs/source/README.html#permissions-and-roles

Thanks for reply, but the issue is already solved by same mechanism
as you are suggesting.

Plone Foundation Code of Conduct