r13529 - in Products.Archetypes/trunk: . Products/Archetypes/tests
"David Glick" <[email protected]> Sat, 26 Mar 2011 02:01:47 +0000
| Newsgroups | gmane.comp.web.zope.plone.archetypes.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: davisagli
Date: Sat Mar 26 02:01:47 2011
New Revision: 13529
Modified:
Products.Archetypes/trunk/CHANGES.txt
Products.Archetypes/trunk/Products/Archetypes/tests/attestcase.py
Log:
fix test setup to work with ZCA-based GS profile registry
Modified: Products.Archetypes/trunk/CHANGES.txt
==============================================================================
--- Products.Archetypes/trunk/CHANGES.txt (original)
+++ Products.Archetypes/trunk/CHANGES.txt Sat Mar 26 02:01:47 2011
@@ -4,6 +4,9 @@
1.7.4 - Unreleased
------------------
+- Fixed test setup to work with ZCA-based GenericSetup profile registry.
+ [davisagli]
+
- Fixed: all labels on edit form had 'display: block' css behaviour
once there was keywords.
[thomasdesvenain]
Modified: Products.Archetypes/trunk/Products/Archetypes/tests/attestcase.py
==============================================================================
--- Products.Archetypes/trunk/Products/Archetypes/tests/attestcase.py (original)
+++ Products.Archetypes/trunk/Products/Archetypes/tests/attestcase.py Sat Mar 26 02:01:47 2011
@@ -5,6 +5,7 @@
from Products.CMFTestCase import CMFTestCase
from Products.CMFTestCase.ctc import setupCMFSite
+from Products.CMFTestCase.layer import onsetup
from Products.GenericSetup import EXTENSION, profile_registry
from Products.Archetypes.tests.layer import ZCML
@@ -12,12 +13,14 @@
default_user = user_name
default_role = 'Member'
-profile_registry.registerProfile('Archetypes_sampletypes',
- 'Archetypes Sample Content Types',
- 'Extension profile including Archetypes sample content types',
- 'profiles/sample_types',
- 'Products.Archetypes',
- EXTENSION)
+@onsetup
+def setupSampleTypeProfile():
+ profile_registry.registerProfile('Archetypes_sampletypes',
+ 'Archetypes Sample Content Types',
+ 'Extension profile including Archetypes sample content types',
+ 'profiles/sample_types',
+ 'Products.Archetypes',
+ EXTENSION)
# setup a CMF site
ZopeTestCase.installProduct('PythonScripts')
@@ -28,6 +31,7 @@
ZopeTestCase.installProduct('PortalTransforms')
ZopeTestCase.installProduct('Archetypes')
+setupSampleTypeProfile()
setupCMFSite(
extension_profiles=['Products.CMFFormController:CMFFormController',
'Products.CMFQuickInstallerTool:CMFQuickInstallerTool',
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar