Changeset 2555 in products for quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/tests/base.py
- Timestamp:
- Jun 18, 2010 9:43:41 AM (14 years ago)
- Location:
- quintagroup.plonegooglesitemaps/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonegooglesitemaps/trunk
- Property svn:mergeinfo
-
old new 1 /quintagroup.plonegooglesitemaps/branches/plone4:2549-2553 1 2 /quintagroup.plonegooglesitemaps/branches/test_refactoring:2527-2536
-
- Property svnmerge-integrated changed from /quintagroup.plonegooglesitemaps/branches/plone4:1-3587 /quintagroup.plonegooglesitemaps/branches/test_refactoring:1-3576 to /quintagroup.plonegooglesitemaps/branches/test_refactoring:1-3576 /quintagroup.plonegooglesitemaps/branches/plone4:1-3593
- Property svn:mergeinfo
-
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/tests/base.py
r2538 r2555 17 17 18 18 from Products.PloneTestCase import PloneTestCase as ptc 19 from Products.PloneTestCase.layer import onsetup 19 20 from Products.PloneTestCase.layer import PloneSite 20 21 from Products.PloneTestCase.setup import portal_owner … … 30 31 quintagroup.plonegooglesitemaps.config.testing = 1 31 32 quintagroup.plonegooglesitemaps.config.UPDATE_CATALOG = True 33 34 PRODUCT = 'quintagroup.plonegooglesitemaps' 35 36 @onsetup 37 def setup_product(): 38 """Set up the package and its dependencies. 39 40 The @onsetup decorator causes the execution of this body to be 41 deferred until the setup of the Plone site testing layer. We could 42 have created our own layer, but this is the easiest way for Plone 43 integration tests. 44 """ 45 fiveconfigure.debug_mode = True 46 import quintagroup.plonegooglesitemaps 47 zcml.load_config('configure.zcml', quintagroup.plonegooglesitemaps) 48 zcml.load_config('overrides.zcml', quintagroup.plonegooglesitemaps) 49 fiveconfigure.debug_mode = False 50 51 ztc.installPackage(PRODUCT) 52 53 setup_product() 54 ptc.setupPloneSite( products=(PRODUCT,)) 32 55 33 56 … … 69 92 self.auth = "%s:%s" % (portal_owner, default_password) 70 93 71 # Initialize all needed zcml directives72 fiveconfigure.debug_mode = True73 from Products import Five, CMFCore, GenericSetup74 zcml.load_config('meta.zcml', Five)75 zcml.load_config('meta.zcml', CMFCore)76 zcml.load_config('meta.zcml', GenericSetup)77 zcml.load_config('permissions.zcml', Five)78 79 # Force quintagroup.plonegooglesitemaps zcml initialization80 zcml.load_config('configure.zcml', quintagroup.plonegooglesitemaps)81 zcml.load_config('overrides.zcml', quintagroup.plonegooglesitemaps)82 fiveconfigure.debug_mode = False83 84 # Install quintagroup.plonegooglesitemaps package and Plone site85 # with the default profile for the package86 PRODUCT = 'quintagroup.plonegooglesitemaps'87 ptc.installPackage(PRODUCT)88 ptc.setupPloneSite( products=(PRODUCT,))
Note: See TracChangeset
for help on using the changeset viewer.