From e38aadafcaaa7e8e6c690480c05fe4365f4491c9 Mon Sep 17 00:00:00 2001 From: ale-rt Date: Thu, 19 May 2022 11:02:10 +0200 Subject: [PATCH] fixup! Raise Unauthorized when the user has no permission to create the content --- src/plone/api/tests/test_content.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plone/api/tests/test_content.py b/src/plone/api/tests/test_content.py index 48dd6d40..854d5507 100644 --- a/src/plone/api/tests/test_content.py +++ b/src/plone/api/tests/test_content.py @@ -390,6 +390,7 @@ def test_create_with_not_lowercase_id(self): def test_create_anonymous_unauthorized(self): from AccessControl import Unauthorized from plone.app.testing import logout + logout() with self.assertRaises(Unauthorized): obj = api.content.create(