Пример #1
0
    def setUp(cls):
        fiveconfigure.debug_mode = True
        import vs.dashboardmanager

        zcml.load_config("configure.zcml", vs.dashboardmanager)
        fiveconfigure.debug_mode = False
        ztc.installPackage("vs.dashboardmanager", quiet=1)
Пример #2
0
def setup_package():
    fiveconfigure.debug_mode = True
    import getpaid.paymentprocessors
    zcml.load_config('configure.zcml', getpaid.paymentprocessors)
    fiveconfigure.debug_mode = False

    ztc.installPackage('getpaid.paymentprocessors')
Пример #3
0
def setup_eeacontenttypes():
    """ Set up
    """

    # installs fixture profile

    fiveconfigure.debug_mode = True

    import Products.EEAContentTypes
    import collective.deletepermission
    import eea.depiction

    zcml.load_config("configure.zcml", collective.deletepermission)
    zcml.load_config("dependencies.zcml", Products.EEAContentTypes)
    zcml.load_config("testing.zcml", Products.EEAContentTypes.tests)
    zcml.load_config("overrides.zcml", Products.EEAContentTypes)
    zcml.load_config('configure.zcml', eea.depiction)

    # import eea.indicators
    # zcml.load_config("configure.zcml", eea.indicators)
    ztc.installPackage('eea.relations')
    ztc.installPackage('eea.dataservice')
    ztc.installPackage('eea.indicators')
    ztc.installPackage('eea.soer')
    ztc.installPackage('eea.depiction')


    fiveconfigure.debug_mode = False
Пример #4
0
    def setUp(cls):
        """Set up additional products and ZCML required to test this product.
        """
        #ztc.installProduct('RichDocument')
        ztc.installProduct('LinguaPlone')
        ztc.installProduct('PlacelessTranslationService')
        ztc.installPackage('slc.linguatools')
        ptc.setupPloneSite(products=[
            'LinguaPlone',
            'slc.linguatools',
            'Products.RichDocument',
            ])

        # Load the ZCML configuration for this package and its dependencies

        # register the Browserlayer from slc.linguatools, so that our
        # schema-extensions using IBrowserLayerAwareExtender work
        browserlayerutils.register_layer(ILinguaToolsLayer,
            name='slc.linguatools')

        fiveconfigure.debug_mode = True
        import slc.linguatools
        import Products.LinguaPlone
        zcml.load_config('configure.zcml', slc.linguatools)
        import Products.LinguaPlone
        zcml.load_config('configure.zcml', Products.LinguaPlone)
        fiveconfigure.debug_mode = False

        SiteLayer.setUp()
Пример #5
0
def setup_optilux_policy():
    """Set up the additional products required for the Optilux site policy.
    
    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 optilux.policy package.
    # This includes the other products below as well.
    
    fiveconfigure.debug_mode = True
    import optilux.policy
    zcml.load_config('configure.zcml', optilux.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.
    
    ztc.installPackage('borg.localrole')
    ztc.installPackage('borg.project')
    
    ztc.installPackage('optilux.theme')
    ztc.installPackage('optilux.cinemacontent')
    ztc.installPackage('optilux.policy')
Пример #6
0
def setup_package():
    fiveconfigure.debug_mode = True
    import plone.portlet.viewlet

    zcml.load_config("configure.zcml", plone.portlet.viewlet)
    fiveconfigure.debug_mode = False
    ztc.installPackage("plone.portlet.viewlet")
def setup_product():
   fiveconfigure.debug_mode = True
   import collective.psc.blobstorage
   zcml.load_config('configure.zcml',
                    collective.psc.blobstorage)
   fiveconfigure.debug_mode = False
   ztc.installPackage('collective.psc.blobstorage')
Пример #8
0
def setup_product():
    """Set up the package and its dependencies.

    The @onsetup decorator causes the execution of this body to be
    deferred until the setup of the Plone site testing layer. We could
    have created our own layer, but this is the easiest way for Plone
    integration tests.
    """

    # Load the ZCML configuration for the example.tests package.
    # This can of course use <include /> to include other packages.

    fiveconfigure.debug_mode = True
    import pp.demo
    import zopyx.authoring
    zcml.load_config('configure.zcml', zopyx.authoring)
    zcml.load_config('configure.zcml', pp.demo)
    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. Thus, we do it here. Note the use of installPackage()
    # instead of installProduct().
    # This is *only* necessary for packages outside the Products.*
    # namespace which are also declared as Zope 2 products, using
    # <five:registerPackage /> in ZCML.

    # We may also need to load dependencies, e.g.:
    #   ztc.installPackage('borg.localrole')

    ztc.installPackage('zopyx.authoring')
    ztc.installPackage('pp.demo')
Пример #9
0
def setup_product():
    """Set up the package and its dependencies.

    The @onsetup decorator causes the execution of this body to be deferred
    until the setup of the Plone site testing layer. We could have created our
    own layer, but this is the easiest way for Plone integration tests.
    """

    fiveconfigure.debug_mode = True
    import archetypes.schemaextender
    zcml.load_config('configure.zcml', archetypes.schemaextender)
    fiveconfigure.debug_mode = False

    # Load the ZCML configuration for the collective.readunread package.
    # This can of course use <include /> to include other packages.

    fiveconfigure.debug_mode = True
    import collective.readunread
    zcml.load_config('configure.zcml', collective.readunread)
    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. Thus, we do it here. Note the use of installPackage() instead
    # of installProduct().
    #
    # This is *only* necessary for packages outside the Products.* namespace
    # which are also declared as Zope 2 products, using
    # <five:registerPackage /> in ZCML.

    # We may also need to load dependencies, e.g.:
    #
    #   ztc.installPackage('borg.localrole')
    #
    ztc.installPackage('collective.readunread')
Пример #10
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     import quintagroup.pfg.captcha
     zcml.load_config('configure.zcml', quintagroup.pfg.captcha)
     fiveconfigure.debug_mode = False
     ztc.installPackage('quintagroup.pfg.captcha')
     ztc.installPackage('quintagroup.captcha.core')
Пример #11
0
 def setUp(cls):
     """ Setup
     """
     fiveconfigure.debug_mode = True
     ztc.installPackage(eea.design)
     ztc.installPackage(eea.versions)
     fiveconfigure.debug_mode = False
Пример #12
0
def setup():
    import pmr2.app.annotation
    fiveconfigure.debug_mode = True
    zcml.load_config('configure.zcml', pmr2.app.annotation)
    zcml.load_config(join('tests', 'test.zcml'), pmr2.app.annotation)
    fiveconfigure.debug_mode = False
    ztc.installPackage('pmr2.app')
Пример #13
0
def setup_product():
    fiveconfigure.debug_mode = True
    import quintagroup.captcha.core
    import quintagroup.formlib.captcha
    zcml.load_config('configure.zcml', quintagroup.formlib.captcha)
    fiveconfigure.debug_mode = False
    ztc.installPackage('quintagroup.captcha.core')
Пример #14
0
def setup():
    import pmr2.z3cform
    fiveconfigure.debug_mode = True
    zcml.load_config('configure.zcml', pmr2.z3cform)
    zcml.load_config('testing.zcml', pmr2.z3cform.tests)
    fiveconfigure.debug_mode = False
    ztc.installPackage('pmr2.z3cform')
Пример #15
0
 def install_product(self):
     fiveconfigure.debug_mode = True
     zcml.load_config('configure.zcml',
                      collective.autosaveform)
     ztc.installPackage(collective.autosaveform)
     self.addProfile('collective.autosaveform:default')
     self.addProduct('collective.autosaveform')
Пример #16
0
def setup():
    import pmr2.annotation.curation

    fiveconfigure.debug_mode = True
    zcml.load_config("configure.zcml", pmr2.annotation.curation)
    fiveconfigure.debug_mode = False
    ztc.installPackage("pmr2.annotation.curation")
Пример #17
0
    def setUp(cls):

        ztc.installProduct('borg.project')

        ptc.setupPloneSite(products=(
            'CMFPlacefulWorkflow', 
            ), extension_profiles=(
                u'borg.project:default',
            ))

        fiveconfigure.debug_mode = True
        import borg.project
        zcml.load_config('configure.zcml', borg.project)
        import Products.CMFPlacefulWorkflow
        zcml.load_config('configure.zcml', Products.CMFPlacefulWorkflow)
        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. Notice the extra package=True argument passed to 
        # installProduct() - this tells it that these packages are *not* in the
        # Products namespace.
    
        ztc.installPackage('borg.localrole')
        ztc.installPackage('borg.project')
        SiteLayer.setUp()
 def setUp(cls):
     fiveconfigure.debug_mode = True
     zcml.load_config('configure.zcml',
                      collective.collection.yearview)
     fiveconfigure.debug_mode = False
     
     ztc.installPackage('collective.collection.yearview')    
Пример #19
0
def setup_product():
    fiveconfigure.debug_mode = True
    import collective.borgerdk

    zcml.load_config("configure.zcml", collective.borgerdk)
    fiveconfigure.debug_mode = False
    ztc.installPackage("collective.borgerdk")
Пример #20
0
def setup():
    import pmr2.oauth
    fiveconfigure.debug_mode = True
    zcml.load_config('configure.zcml', pmr2.oauth)
    zcml.load_config('tests.zcml', pmr2.oauth.tests)
    fiveconfigure.debug_mode = False
    ztc.installPackage('pmr2.oauth')
Пример #21
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     import eduintelligent.zipcontent
     zcml.load_config('configure.zcml',
                      eduintelligent.zipcontent)
     ztc.installPackage('eduintelligent.zipcontent')
     fiveconfigure.debug_mode = False
Пример #22
0
def setup_product():
    """Set up additional products and ZCML required to test this product.
    
    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 this package and its dependencies
    
    fiveconfigure.debug_mode = True
    import onenw.pigeonhole
    zcml.load_config('configure.zcml', onenw.pigeonhole)
    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.
    
    ztc.installPackage('onenw.pigeonhole')

    # optionally, try installing blobs. OK if they're not there.
    try:
        import plone.app.blob
        zcml.load_config('configure.zcml', plone.app.blob)
        ztc.installPackage('plone.app.blob')
    except:
        print "No plone.app.blob. Some tests might be less accurate."
Пример #23
0
		def setUp(cls):
			fiveconfigure.debug_mode = True
			zcml.load_config('configure.zcml',
							 Variation.SNP250k)
			fiveconfigure.debug_mode = False
			
			ztc.installPackage('Variation.SNP250k')
def setup_product():
    fiveconfigure.debug_mode = True
    import collective.passwordhistory
    zcml.load_config('configure.zcml', collective.passwordhistory)
    fiveconfigure.debug_mode = False

    ztc.installPackage('collective.passwordhistory')
Пример #25
0
def setup_pleiades_workspace():
    fiveconfigure.debug_mode = True
    import pleiades.workspace
    zcml.load_config('configure.zcml', pleiades.workspace)
    fiveconfigure.debug_mode = False
    ztc.installPackage('pleiades.vocabularies')
    ztc.installPackage('pleiades.workspace')
Пример #26
0
def setup_product():
    """Set up the package and its dependencies."""
    fiveconfigure.debug_mode = True
    import collective.classifieds
    zcml.load_config('configure.zcml', collective.classifieds)
    fiveconfigure.debug_mode = False
    ztc.installPackage('collective.classifieds')
Пример #27
0
def setup_product():
    fiveconfigure.debug_mode = True
    zcml.load_config("configure.zcml", plone4bio.base)
    zcml.load_config("configure.zcml", plone4bio.pscoils)
    fiveconfigure.debug_mode = False
    ztc.installPackage("plone4bio.base")
    ztc.installPackage("plone4bio.pscoils")
Пример #28
0
def setup():
    import pmr2.git
    fiveconfigure.debug_mode = True
    zcml.load_config('configure.zcml', pmr2.git)
    zcml.load_config('test.zcml', pmr2.testing)
    fiveconfigure.debug_mode = False
    ztc.installPackage('pmr2.app')
def setup_product():
    fiveconfigure.debug_mode = True
    import collective.suisseid
    zcml.load_config('configure.zcml', collective.suisseid)
    fiveconfigure.debug_mode = False
    
    ztc.installPackage('collective.suisseid')
Пример #30
0
def setup_product():
    """Set up the package and its dependencies.

    The @onsetup decorator causes the execution of this body to be
    deferred until the setup of the Plone site testing layer. We could
    have created our own layer, but this is the easiest way for Plone
    integration tests.
    """
    ztc.installProduct('Archetypes')
    ztc.installProduct('MimetypesRegistry')
    ztc.installProduct('PortalTransforms') 
    # to support tests for translated vocabularies
    ztc.installProduct('PloneLanguageTool')
    # Load the ZCML configuration for the example.tests package.
    # This can of course use <include /> to include other packages.

    import Products.ATVocabularyManager
    import plumi.content
    fiveconfigure.debug_mode = True
    zcml.load_config('configure.zcml', Products.ATVocabularyManager)
    zcml.load_config('configure.zcml', plumi.content)        
    fiveconfigure.debug_mode = False
        
    ztc.installPackage('ATVocabularyManager')
    ztc.installPackage('plumi.content')
Пример #31
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(bise.country)
     fiveconfigure.debug_mode = False
Пример #32
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(collective.conference)
     fiveconfigure.debug_mode = False
Пример #33
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(wildcard.importexport)
     fiveconfigure.debug_mode = False
Пример #34
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     import plone.outputfilters
     ztc.installPackage(plone.outputfilters)
     fiveconfigure.debug_mode = False
Пример #35
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(interclps.skin)
     fiveconfigure.debug_mode = False
Пример #36
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(Products.Vees)
     fiveconfigure.debug_mode = False
 def setUp(cls):
     fiveconfigure.debug_mode = True
     zcml.load_config('configure.zcml', Products.RhaptosWorkgroup)
     ztc.installPackage('Products.RhaptosWorkgroup')
     fiveconfigure.debug_mode = False
Пример #38
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(ejn.theme)
     fiveconfigure.debug_mode = False
Пример #39
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(vilaix.core)
     fiveconfigure.debug_mode = False
Пример #40
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     import iservices.controlpanel
     zcml.load_config("configure.zcml", iservices.controlpanel)
     ztc.installPackage(iservices.controlpanel)
     fiveconfigure.debug_mode = False
Пример #41
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(medialog.manotheme)
     fiveconfigure.debug_mode = False
Пример #42
0
def setup_addon():
    fiveconfigure.debug_mode = True
    import collective.js.supersized
    zcml.load_config('configure.zcml', collective.js.supersized)
    fiveconfigure.debug_mode = False
    ztc.installPackage('collective.js.supersized')
Пример #43
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(ploomcake.theme_collection_accessibility)
     fiveconfigure.debug_mode = False
Пример #44
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(vtv.pruebaluis)
     fiveconfigure.debug_mode = False
Пример #45
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     zcml.load_config('configure.zcml', Products.Lensmaker)
     ztc.installPackage('Products.Lensmaker')
     fiveconfigure.debug_mode = False
Пример #46
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(collective.disableduser)
     fiveconfigure.debug_mode = False
Пример #47
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(jalon.edit)
     fiveconfigure.debug_mode = False
Пример #48
0
    def setUp(cls):
        app = ZopeTestCase.app()
        portal = app.plone
        ZopeTestCase.installPackage("iqpp.easyshop")
        ZopeTestCase.installPackage("easyshop.shop")
        ZopeTestCase.installPackage("easyshop.catalog")
        ZopeTestCase.installPackage("easyshop.carts")
        ZopeTestCase.installPackage("easyshop.criteria")
        ZopeTestCase.installPackage("easyshop.customers")
        ZopeTestCase.installPackage("easyshop.discounts")
        ZopeTestCase.installPackage("easyshop.groups")
        ZopeTestCase.installPackage("easyshop.information")
        ZopeTestCase.installPackage("easyshop.kss")
        ZopeTestCase.installPackage("easyshop.login")
        ZopeTestCase.installPackage("easyshop.management")
        ZopeTestCase.installPackage("easyshop.order")
        ZopeTestCase.installPackage("easyshop.payment")
        ZopeTestCase.installPackage("easyshop.shipping")
        ZopeTestCase.installPackage("easyshop.stocks")
        ZopeTestCase.installPackage("easyshop.taxes")
        
        setup_tool = getToolByName(portal, 'portal_setup')
        setup_tool.runAllImportStepsFromProfile('profile-iqpp.easyshop:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.shop:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.catalog:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.carts:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.criteria:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.customers:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.discounts:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.groups:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.information:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.kss:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.login:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.management:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.order:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.payment:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.shipping:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.stocks:default')
        setup_tool.runAllImportStepsFromProfile('profile-easyshop.taxes:default')

        # login as admin (copied from `loginAsPortalOwner`)
        uf = app.acl_users
        user = uf.getUserById(PloneTestCase.portal_owner).__of__(uf)
        newSecurityManager(None, user)

        utils.createTestEnvironment(portal)
        
        commit()
        ZopeTestCase.close(app)
Пример #49
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(edeposit.user)
     fiveconfigure.debug_mode = False
Пример #50
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(genweb.alternatheme)
     fiveconfigure.debug_mode = False
Пример #51
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(beyondskins.item6)
     fiveconfigure.debug_mode = False
Пример #52
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(sl.geoservices)
     fiveconfigure.debug_mode = False
Пример #53
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(wildcard.migratorsource)
     fiveconfigure.debug_mode = False
Пример #54
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(plonetheme.culturesciencesphysique)
     fiveconfigure.debug_mode = False
Пример #55
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(uwosh.policy.ldap)
     fiveconfigure.debug_mode = False
Пример #56
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(hejasverige.invitation)
     fiveconfigure.debug_mode = False
Пример #57
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(example.rtsubsites_theme)
     fiveconfigure.debug_mode = False
Пример #58
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(plonetheme.chalkboard)
     fiveconfigure.debug_mode = False
Пример #59
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(collective.mydemoapp)
     fiveconfigure.debug_mode = False
Пример #60
0
 def setUp(cls):
     fiveconfigure.debug_mode = True
     ztc.installPackage(zopyx.ipsumplone)
     fiveconfigure.debug_mode = False