Skip to content

Commit

Permalink
Implement a tearDownPloneSite method in testing.py to prevent test is…
Browse files Browse the repository at this point in the history
…olation problems.
  • Loading branch information
tisto committed Sep 15, 2013
1 parent 5aa72e5 commit 0b0d43c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CHANGES.rst
Expand Up @@ -4,13 +4,17 @@ Changelog
1.0rc1 (unreleased)
-------------------

- Its possible to upload non-image data into a newsitem. The view was broken
then. Now it shows the uploaded file for download below the content. Its no
- Implement a tearDownPloneSite method in testing.py to prevent test
isolation problems.
[timo]

- Its possible to upload non-image data into a newsitem. The view was broken
then. Now it shows the uploaded file for download below the content. Its no
longer broken.
[jensens]

- Add contributor role as default for all add permissions in order to
work together with the different plone worklfows, which assume it is
work together with the different plone worklfows, which assume it is
set this way.
[jensens]

Expand Down
4 changes: 4 additions & 0 deletions plone/app/contenttypes/testing.py
Expand Up @@ -40,6 +40,10 @@ def setUpPloneSite(self, portal):
title=u"Test Folder"
)

def tearDownPloneSite(self, portal):
applyProfile(portal, 'plone.app.contenttypes:uninstall')


PLONE_APP_CONTENTTYPES_FIXTURE = PloneAppContenttypes()
PLONE_APP_CONTENTTYPES_INTEGRATION_TESTING = IntegrationTesting(
bases=(PLONE_APP_CONTENTTYPES_FIXTURE,),
Expand Down

1 comment on commit 0b0d43c

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing information:

Please sign in to comment.