Changeset 1279

Show
Ignore:
Timestamp:
04/18/08 18:49:29 (8 months ago)
Author:
sgillies
Message:

Include pleiades.theme, with tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pleiades.policy/trunk/pleiades/policy/Extensions/Install.py

    r1271 r1279  
    22from Products.CMFCore.utils import getToolByName 
    33 
    4 PRODUCT_DEPENDENCIES = ('ATVocabularyManager', 'PleiadesEntity', 'pleiades.vocabulary') 
     4PRODUCT_DEPENDENCIES = ( 
     5    'ATVocabularyManager', 
     6    'PleiadesEntity',  
     7    'pleiades.vocabulary', 
     8    'pleiades.theme' 
     9    ) 
    510                         
    611EXTENSION_PROFILES = ('pleiades.policy:default',) 
  • pleiades.policy/trunk/pleiades/policy/configure.zcml

    r1271 r1279  
    66  > 
    77 
     8  <include package="pleiades.theme"/> 
    89  <include package="pleiades.vocabulary"/> 
    910 
  • pleiades.policy/trunk/pleiades/policy/tests/base.py

    r1271 r1279  
    2929    ztc.installProduct('pleiades.policy') 
    3030    ztc.installProduct('pleiades.vocabulary') 
     31    ztc.installProduct('pleiades.theme') 
    3132     
    3233# The order here is important: We first call the (deferred) function which 
     
    3536 
    3637setup_pleiades_policy() 
    37 ptc.setupPloneSite(products=['ATVocabularyManager', 'PleiadesEntity', 'pleiades.policy']) 
     38ptc.setupPloneSite( 
     39    products=['ATVocabularyManager', 'PleiadesEntity', 'pleiades.policy'] 
     40    ) 
    3841 
    3942class PleiadesPolicyTestCase(ptc.PloneTestCase): 
  • pleiades.policy/trunk/pleiades/policy/tests/test_setup.py

    r1271 r1279  
    3232                                self.portal.permissionsOfRole('Reader') if r['selected']]) 
    3333 
    34     def test_structure(self): 
     34    def test_policy_structure(self): 
    3535        self.failUnless('disclaimer' in self.portal.keys()) 
    3636        self.failUnless('front-page' in self.portal.keys()) 
     
    4040        self.failUnless('places' in self.portal.keys()) 
    4141 
    42     def test_vocabulary_installed(self): 
     42    def test_vocabulary_setup(self): 
    4343        self.failUnless('vocabulary' in self.portal.keys()) 
     44 
     45    def test_theme_setup(self): 
    4446        skins = getToolByName(self.portal, 'portal_skins') 
    45         layer = skins.getSkinPath('Pleiades Vocabulary') 
    46         self.failUnless('pleiades_vocabulary_custom_templates' in layer) 
    47  
     47        layer = skins.getSkinPath('Pleiades Theme') 
     48        self.failUnless('pleiades_theme_custom_images' in layer) 
     49        self.failUnless('pleiades_theme_custom_templates' in layer) 
     50        self.failUnless('pleiades_theme_styles' in layer) 
    4851 
    4952def test_suite():