Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Reload cache on testing creating content
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodbare committed Nov 24, 2016
1 parent 2aa67fd commit 09c531c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plone.server/plone/server/tests/test_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from plone.server.content import createContentInContainer
from plone.server.content import Folder
from plone.server.content import NotAllowedContentType
from plone.server.content import loadCachedSchema
from plone.server.metaconfigure import contenttypeDirective
from plone.server.testing import PloneServerBaseTestCase

Expand All @@ -27,6 +28,7 @@ def test_allowed_types(self):
add_permission=None,
allowed_types=['Item'])
self.layer.app.app.config.execute_actions()
loadCachedSchema()
obj = createContentInContainer(site, 'TestType', 'foobar')
with self.assertRaises(NotAllowedContentType):
createContentInContainer(obj, 'TestType', 'foobar')
Expand Down

0 comments on commit 09c531c

Please sign in to comment.