-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate test to PLONE_APP_CONTENTTYPES_FIXTURE
- Loading branch information
Showing
5 changed files
with
58 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# -*- coding: utf-8 -*- | ||
from plone.app.contenttypes.testing import PLONE_APP_CONTENTTYPES_FIXTURE | ||
from plone.app.testing import applyProfile | ||
from plone.app.testing import IntegrationTesting | ||
from plone.app.testing import PloneSandboxLayer | ||
|
||
import Products.MimetypesRegistry | ||
|
||
|
||
class ProductsMimetypesregistryLayer(PloneSandboxLayer): | ||
|
||
defaultBases = (PLONE_APP_CONTENTTYPES_FIXTURE,) | ||
|
||
def setUpZope(self, app, configurationContext): | ||
# Load any other ZCML that is required for your tests. | ||
# The z3c.autoinclude feature is disabled in the Plone fixture base | ||
# layer. | ||
self.loadZCML(package=Products.MimetypesRegistry) | ||
|
||
def setUpPloneSite(self, portal): | ||
applyProfile(portal, 'Products.MimetypesRegistry:MimetypesRegistry') | ||
|
||
|
||
PRODUCTS_MIMETYPESREGISTRY_FIXTURE = ProductsMimetypesregistryLayer() | ||
|
||
|
||
PRODUCTS_MIMETYPESREGISTRY_INTEGRATION_TESTING = IntegrationTesting( | ||
bases=(PRODUCTS_MIMETYPESREGISTRY_FIXTURE,), | ||
name='ProductsMimetypesregistryLayer:IntegrationTesting', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters