def setUp(cls): ptc.installProduct('Maps') fiveconfigure.debug_mode = True zcml.load_config('configure.zcml', collective.realestatebroker) fiveconfigure.debug_mode = False ptc.installPackage('collective.realestatebroker')
def afterSetUp(self): # load zcml for this package and its dependencies fiveconfigure.debug_mode = True from collective import usernamelogger zcml.load_config('configure.zcml', package=usernamelogger) fiveconfigure.debug_mode = False # after which the required packages can be initialized ptc.installPackage('collective.usernamelogger', quiet=True)
def setup_eea_relations(): """Set up the additional products. """ fiveconfigure.debug_mode = True import eea.relations zcml.load_config('configure.zcml', eea.relations) fiveconfigure.debug_mode = False PloneTestCase.installPackage('eea.relations')
def setup_promotion(): """ Setup promotion """ fiveconfigure.debug_mode = True zcml.load_config('configure.zcml', eea.promotion) fiveconfigure.debug_mode = False PloneTestCase.installPackage('eea.themecentre')
def setup_eea_relations(): """Set up the additional products. """ fiveconfigure.debug_mode = True import eea.relations zcml.load_config("configure.zcml", eea.relations) fiveconfigure.debug_mode = False PloneTestCase.installPackage("eea.relations")
def setup_eeacontenttypes(): """ Setup eeacontenttypes """ fiveconfigure.debug_mode = True zcml.load_config('configure.zcml', Products.EEATemplatesService) fiveconfigure.debug_mode = False PloneTestCase.installPackage('collective.monkeypatcher') PloneTestCase.installPackage('collective.fastview')
def setup_copernicus_contenttypes(): """Set up the package and its dependencies. """ fiveconfigure.debug_mode = True import land.copernicus.content zcml.load_config('configure.zcml', land.copernicus.content) fiveconfigure.debug_mode = False ptc.installPackage('land.copernicus.content')
def setup_product(): PloneTestCase.installPackage('plone.browserlayer', quiet=1) fiveconfigure.debug_mode = True import Products.LinguaPlone.tests zcml.load_config('configure.zcml', Products.LinguaPlone.tests) fiveconfigure.debug_mode = False profile_registry.registerProfile( 'LinguaPlone_tests', 'LinguaPlone test content types', 'Extension profile including dummy types to test LinguaPlone', 'profiles/test_types', 'Products.LinguaPlone', EXTENSION)
def setUp(cls): profile_registry.registerProfile('sample_types', 'Recurrence Sample Content Types', 'Extension profile including Archetypes sample content types', 'profiles/sample_types', 'plone.formwidget.recurrence', EXTENSION) fiveconfigure.debug_mode = True ptc.installPackage('plone.formwidget.recurrence', quiet=0) zcml.load_config('configure.zcml', plone.formwidget.recurrence) fiveconfigure.debug_mode = False
def setup_depiction(): """ Setup """ fiveconfigure.debug_mode = True if P_VIDEO: zcml.load_config('test.zcml', p4a.video) zcml.load_config('overrides.zcml', eea.depiction) zcml.load_config('configure.zcml', eea.depiction) fiveconfigure.debug_mode = False if P_VIDEO: PloneTestCase.installPackage('p4a.video')
def setup_eea_geotags(): """Set up the additional products. The @onsetup decorator causes the execution of this body to be deferred until the setup of the Plone site testing layer. """ fiveconfigure.debug_mode = True zcml.load_config('configure.zcml', eea.geotags) fiveconfigure.debug_mode = False PloneTestCase.installPackage('eea.alchemy') PloneTestCase.installPackage('eea.jquery')
def setup_epub(): """ setup epub test """ metaconfigure.debug_mode = True load_config('configure.zcml', eea.epub) load_config('configure.zcml', eea.downloads) metaconfigure.debug_mode = False os.environ["EEADOWNLOADS_PATH"] = PATH os.environ["EEACONVERTER_TEMP"] = TEMP os.environ["EEADOWNLOADS_NAME"] = 'downloads' PloneTestCase.installPackage('eea.downloads')
def setup_product(): PloneTestCase.installPackage('plone.browserlayer', quiet=1) fiveconfigure.debug_mode = True import Products.LinguaPlone.tests zcml.load_config('configure.zcml', Products.LinguaPlone.tests) fiveconfigure.debug_mode = False profile_registry.registerProfile('LinguaPlone_tests', 'LinguaPlone test content types', 'Extension profile including dummy types to test LinguaPlone', 'profiles/test_types', 'Products.LinguaPlone', EXTENSION)
def setup_depiction(): """ Setup """ fiveconfigure.debug_mode = True if P_VIDEO: zcml.load_config('test.zcml', p4a.video) zcml.load_config('overrides.zcml', eea.depiction) zcml.load_config('configure.zcml', eea.depiction) zcml.load_config('configure.zcml', eea.rdfmarshaller) fiveconfigure.debug_mode = False if P_VIDEO: PloneTestCase.installPackage('p4a.video')
def setup_eea_alchemy(): """ Set up the additional products. The @onsetup decorator causes the execution of this body to be deferred until the setup of the Plone site testing layer. """ fiveconfigure.debug_mode = True if EEA_RELATIONS: zcml.load_config('configure.zcml', eea.relations) zcml.load_config('configure.zcml', eea.alchemy) fiveconfigure.debug_mode = False if EEA_RELATIONS: ptc.installPackage('eea.relations') ptc.installPackage('eea.alchemy')
def setup_eduintelligent_policy(): """ Setup the additional products required for eduIntelligent. The @onsetup decorator causes the execution of this body to be deferred until the setup of the Plone site testing layer """ #Load the ZCML configuration for the eduintelligent.policy package fiveconfigure.debug_mode = True import eduintelligent.policy zcml.load_config('configure.zcml',eduintelligent.policy) fiveconfigure.debug_mode = False #We need to tell the testing framework that these products #should be available. This can't happen until after we have loaded #the ZCML PloneTestCase.installPackage('eduintelligent.policy')
def setup_mediacentre(): """ Setup media centre """ fiveconfigure.debug_mode = True zcml.load_config('configure.zcml', eea.mediacentre) fiveconfigure.debug_mode = False PloneTestCase.installPackage('valentine.linguaflow') PloneTestCase.installPackage('ATVocabularyManager') PloneTestCase.installPackage('eea.themcentre')
def setup_eea_geotags(): """Set up the additional products. The @onsetup decorator causes the execution of this body to be deferred until the setup of the Plone site testing layer. """ fiveconfigure.debug_mode = True zcml.load_config('configure.zcml', eea.geotags) fiveconfigure.debug_mode = False PloneTestCase.installPackage('eea.alchemy') PloneTestCase.installPackage('eea.jquery') PloneTestCase.installPackage('eea.geolocation')
def setUp(cls): fiveconfigure.debug_mode = True ptc.installPackage('archetypes.datetimewidget', quiet=0) zcml.load_config('configure.zcml', archetypes.datetimewidget) fiveconfigure.debug_mode = False
def setup_depiction(): """ Setup """ load_config('configure.zcml', eea.depiction) PloneTestCase.installPackage('eea.depiction')
layer = PloneSite def afterSetUp(self): self.loginAsPortalOwner() class TestCase(MixinTestCase, ptc.PloneTestCase): """ For unit tests """ class FunctionalTestCase(MixinTestCase, ptc.FunctionalTestCase): """ For functional tests """ # Initialize all needed zcml directives fiveconfigure.debug_mode = True from Products import Five, CMFCore, GenericSetup zcml.load_config('meta.zcml', Five) zcml.load_config('meta.zcml', CMFCore) zcml.load_config('meta.zcml', GenericSetup) zcml.load_config('permissions.zcml', Five) # Force quintagroup.plonegooglesitemaps zcml initialization zcml.load_config('configure.zcml', quintagroup.plonegooglesitemaps) zcml.load_config('overrides.zcml', quintagroup.plonegooglesitemaps) fiveconfigure.debug_mode = False # Install quintagroup.plonegooglesitemaps package and Plone site # with the default profile for the package PRODUCT = 'quintagroup.plonegooglesitemaps' ptc.installPackage(PRODUCT) ptc.setupPloneSite( products=(PRODUCT,))
def load_package_products(): fiveconfigure.debug_mode = True zcml.load_config('configure.zcml', pas.plugins.aselect) ptc.installPackage('pas.plugins.aselect') fiveconfigure.debug_mode = False
def setUp(cls): fiveconfigure.debug_mode = True zcml.load_config('configure.zcml', pkg) fiveconfigure.debug_mode = False ptc.installPackage(pkg.__name__) # , quiet=True)
def setup_indicators(): """Setup utilities""" fiveconfigure.debug_mode = True import eea.indicators import eea.indicators.tests zcml.load_config('configure.zcml', eea.indicators) zcml.load_config('testing.zcml', eea.indicators.tests) PloneTestCase.installPackage('eea.indicators') import eea.themecentre zcml.load_config('configure.zcml', eea.themecentre) PloneTestCase.installPackage('eea.themecentre') import eea.relations zcml.load_config('configure.zcml', eea.relations) PloneTestCase.installPackage('eea.relations') import eea.workflow zcml.load_config('configure.zcml', eea.workflow) PloneTestCase.installPackage('eea.workflow') import eea.versions zcml.load_config('configure.zcml', eea.versions) PloneTestCase.installPackage('eea.versions') import eea.dataservice zcml.load_config('configure.zcml', eea.dataservice) PloneTestCase.installPackage('eea.dataservice') import eea.tags zcml.load_config('configure.zcml', eea.tags) PloneTestCase.installPackage('eea.tags') import eea.depiction zcml.load_config('configure.zcml', eea.depiction) PloneTestCase.installPackage('eea.depiction') fiveconfigure.debug_mode = False
def setup_soer(): """ Setup """ fiveconfigure.debug_mode = True zcml.load_config('configure.zcml', eea.soer) fiveconfigure.debug_mode = False PloneTestCase.installPackage('eea.soer') PloneTestCase.installPackage('eea.vocab') PloneTestCase.installPackage('eea.rdfmarshaller') PloneTestCase.installPackage('eea.facetednavigation') PloneTestCase.installPackage('eea.faceted.inheritance') PloneTestCase.installPackage('eea.themecentre')
def setUp(cls): fiveconfigure.debug_mode = True zcml.load_config('configure.zcml', archetypes.referencebrowserwidget) ptc.installPackage('archetypes.referencebrowserwidget') fiveconfigure.debug_mode = False