Exemple #1
0
# -*- coding: utf-8 -*-
from plone.app.testing import FunctionalTesting
from plone.testing import z2
from plone.testing import zca
from Products.MeetingCommunes.testing import MCLayer

import Products.MeetingBEP


MBEP_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                            package=Products.MeetingBEP,
                            name='MBEP_ZCML')

MBEP_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, MBEP_ZCML),
                                name='MBEP_Z2')

MBEP_TESTING_PROFILE = MCLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingBEP,
    additional_z2_products=('imio.dashboard',
                            'Products.MeetingBEP',
                            'Products.MeetingCommunes',
                            'Products.PloneMeeting',
                            'Products.CMFPlacefulWorkflow',
                            'Products.PasswordStrength'),
    gs_profile_id='Products.MeetingBEP:testing',
    name="MBEP_TESTING_PROFILE")

MBEP_TESTING_PROFILE_FUNCTIONAL = FunctionalTesting(
    bases=(MBEP_TESTING_PROFILE,), name="MBEP_TESTING_PROFILE_FUNCTIONAL")
Exemple #2
0
# -*- coding: utf-8 -*-

from plone.app.testing import FunctionalTesting
from plone.testing import z2
from plone.testing import zca
from Products.MeetingCommunes.testing import MCLayer
import Products.MeetingLalouviere


class LLLayer(MCLayer):
    """ """


MLL_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                           package=Products.MeetingLalouviere,
                           name="MLL_ZCML")

MLL_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, MLL_ZCML), name="MLL_Z2")

MLL_TESTING_PROFILE = LLLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingLalouviere,
    additional_z2_products=(
        "imio.dashboard",
        "Products.MeetingLalouviere",
        # "Products.MeetingCommunes",
        "Products.PloneMeeting",
        "Products.CMFPlacefulWorkflow",
        "Products.PasswordStrength",
    ),
    gs_profile_id="Products.MeetingLalouviere:testing",
Exemple #3
0
from plone.app.robotframework.testing import REMOTE_LIBRARY_BUNDLE_FIXTURE
from plone.app.testing import FunctionalTesting
from plone.testing import z2
from plone.testing import zca
from Products.PloneMeeting.testing import PMLayer

import Products.MeetingCommunes


class MCLayer(PMLayer):
    """ """


MC_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                          package=Products.MeetingCommunes,
                          name='MC_ZCML')

MC_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, MC_ZCML), name='MC_Z2')

MC_TESTING_PROFILE = MCLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingCommunes,
    additional_z2_products=('imio.dashboard', 'Products.MeetingCommunes',
                            'Products.PloneMeeting',
                            'Products.CMFPlacefulWorkflow',
                            'Products.PasswordStrength'),
    gs_profile_id='Products.MeetingCommunes:testing',
    name="MC_TESTING_PROFILE")

MC_TESTING_PROFILE_FUNCTIONAL = FunctionalTesting(
Exemple #4
0
        super(PMLayer, self).setUpZope(app, configurationContext)

    def setUpPloneSite(self, portal):
        setLocal('request', portal.REQUEST)
        # configure default workflows so Folder has a workflow
        # make sure we have a default workflow
        portal.portal_workflow.setDefaultChain('simple_publication_workflow')
        super(PMLayer, self).setUpPloneSite(portal)
        # Create member area of existing users
        for user in api.user.get_users():
            # this layer is used by imio.pm.wsclient
            _createMemberarea(portal, user.getId())


PM_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                          package=Products.PloneMeeting,
                          name='PM_ZCML')

PM_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, PM_ZCML), name='PM_Z2')

PM_TESTING_PROFILE = PMLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.PloneMeeting,
    additional_z2_products=('Products.PloneMeeting',
                            'collective.eeafaceted.collectionwidget',
                            'Products.CMFPlacefulWorkflow',
                            'Products.PasswordStrength'),
    gs_profile_id='Products.PloneMeeting:testing',
    name="PM_TESTING_PROFILE")

PM_TESTING_PROFILE_INTEGRATION = IntegrationTesting(
Exemple #5
0
# -*- coding: utf-8 -*-
from plone.app.testing import FunctionalTesting
from plone.app.testing import PloneWithPackageLayer
from plone.testing import z2
from plone.testing import zca

import imio.migrator

MIGRATOR_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                                package=imio.migrator,
                                name='MIGRATOR_ZCML')

MIGRATOR_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, MIGRATOR_ZCML),
                                    name='MIGRATOR_Z2')

MIGRATOR_TESTING_PROFILE = PloneWithPackageLayer(
    zcml_filename="testing.zcml",
    zcml_package=imio.migrator,
    additional_z2_products=(),
    name="MIGRATOR_TESTING_PROFILE")

MIGRATOR_TESTING_PROFILE_FUNCTIONAL = FunctionalTesting(
    bases=(MIGRATOR_TESTING_PROFILE, ),
    name="MIGRATOR_TESTING_PROFILE_FUNCTIONAL")
Exemple #6
0
from plone.app.testing import FunctionalTesting
from plone.app.testing import IntegrationTesting
from plone.testing import z2
from plone.testing import zca
from Products.PloneMeeting.testing import PMLayer

import imio.pm.ws


class WSCLIENTLayer(PMLayer):
    """ """


WS4PMCLIENT_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                                   package=imio.pm.wsclient,
                                   name='WS4PMCLIENT_ZCML')

WS4PMCLIENT_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, WS4PMCLIENT_ZCML),
                                       name='WS4PMCLIENT_Z2')

WS4PMCLIENT = WSCLIENTLayer(
    zcml_filename="testing-settings.zcml",
    zcml_package=imio.pm.wsclient,
    additional_z2_products=('imio.dashboard',
                            'imio.pm.wsclient',
                            'imio.pm.ws',
                            'Products.PasswordStrength'),
    gs_profile_id='imio.pm.wsclient:testing',
    name="WS4PMCLIENT")
Exemple #7
0
# -*- coding: utf-8 -*-
from plone.app.testing import FunctionalTesting
from plone.testing import z2
from plone.testing import zca
from Products.MeetingCommunes.testing import MCLayer

import Products.MeetingCharleroi

MCH_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                           package=Products.MeetingCharleroi,
                           name='MCH_ZCML')

MCH_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, MCH_ZCML), name='MCH_Z2')

MCH_TESTING_PROFILE = MCLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingCharleroi,
    additional_z2_products=('imio.dashboard', 'Products.MeetingCharleroi',
                            'Products.MeetingCommunes',
                            'Products.PloneMeeting',
                            'Products.CMFPlacefulWorkflow',
                            'Products.PasswordStrength'),
    gs_profile_id='Products.MeetingCharleroi:testing',
    name="MCH_TESTING_PROFILE")

MCH_TESTING_PROFILE_FUNCTIONAL = FunctionalTesting(
    bases=(MCH_TESTING_PROFILE, ), name="MCH_TESTING_PROFILE_FUNCTIONAL")
Exemple #8
0
# -*- coding: utf-8 -*-
from plone.testing import Layer
from plone.testing import z2
from plone.testing import zca
import plone.autoform

AUTOFORM_FIXTURE = zca.ZCMLSandbox(bases=(z2.STARTUP, ),
                                   filename='configure.zcml',
                                   package=plone.autoform,
                                   name="plone.autoform:Fixture")

AUTOFORM_INTEGRATION_TESTING = z2.IntegrationTesting(
    bases=(AUTOFORM_FIXTURE, ), name="plone.autoform:Integration")
Exemple #9
0
# -*- coding: utf-8 -*-
from plone.app.testing import FunctionalTesting
from plone.testing import z2
from plone.testing import zca
from Products.MeetingCommunes.testing import MCLayer

import Products.MeetingPROVHainaut


MPH_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                           package=Products.MeetingPROVHainaut,
                           name='MPH_ZCML')

MPH_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, MPH_ZCML),
                               name='MPH_Z2')

MPH_TESTING_PROFILE = MCLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingPROVHainaut,
    additional_z2_products=('imio.dashboard',
                            'Products.PloneMeeting',
                            'Products.MeetingCommunes',
                            'Products.MeetingPROVHainaut',
                            'Products.CMFPlacefulWorkflow',
                            'Products.PasswordStrength'),
    gs_profile_id='Products.MeetingPROVHainaut:testing',
    name="MPH_TESTING_PROFILE")

MPH_FIN_TESTING_PROFILE = MCLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingPROVHainaut,
Exemple #10
0
# -*- coding: utf-8 -*-
from plone.testing import z2, zca
from plone.app.testing import PloneWithPackageLayer
from plone.app.testing import FunctionalTesting
from Products.PloneMeeting.testing import PloneMeetingLayer
import Products.MeetingAndenne
from plone.app.robotframework.testing import REMOTE_LIBRARY_BUNDLE_FIXTURE

MA_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                          package=Products.MeetingAndenne,
                          name='MA_ZCML')

MA_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, MC_ZCML), name='MA_Z2')

MA_TESTING_PROFILE = PloneMeetingLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingAndenne,
    additional_z2_products=('Products.MeetingAndenne', 'Products.PloneMeeting',
                            'Products.CMFPlacefulWorkflow',
                            'Products.PasswordStrength'),
    gs_profile_id='Products.MeetingAndenne:testing',
    name="MA_TESTING_PROFILE")

MA_TESTING_PROFILE_FUNCTIONAL = FunctionalTesting(
    bases=(MA_TESTING_PROFILE, ), name="MA_TESTING_PROFILE_FUNCTIONAL")

MA_EXAMPLES_FR_TESTING_PROFILE = PloneWithPackageLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingAndenne,
    additional_z2_products=('Products.MeetingAndenne', 'Products.PloneMeeting',
                            'Products.CMFPlacefulWorkflow'),
Exemple #11
0
# -*- coding: utf-8 -*-

from plone.app.testing import FunctionalTesting
from plone.testing import z2
from plone.testing import zca
from Products.MeetingCommunes.testing import MCLayer

import Products.MeetingNamur


class MSLayer(MCLayer):
    """ """


MNA_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                           package=Products.MeetingNamur,
                           name='MNA_ZCML')

MNA_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, MNA_ZCML), name='MNA_Z2')

MNA_TESTING_PROFILE = MSLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingNamur,
    additional_z2_products=('imio.dashboard', 'Products.MeetingNamur',
                            'Products.PloneMeeting',
                            'Products.CMFPlacefulWorkflow',
                            'Products.PasswordStrength'),
    gs_profile_id='Products.MeetingNamur:testing',
    name="MNA_TESTING_PROFILE")

MNA_TESTING_PROFILE_FUNCTIONAL = FunctionalTesting(
Exemple #12
0
# -*- coding: utf-8 -*-
from plone.app.testing import FunctionalTesting
from plone.testing import z2
from plone.testing import zca
from Products.PloneMeeting.testing import PMLayer

import Products.MeetingLiege


class MLLayer(PMLayer):
    """ """


ML_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                          package=Products.MeetingLiege,
                          name='ML_ZCML')

ML_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, ML_ZCML), name='ML_Z2')

ML_TESTING_PROFILE = MLLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingLiege,
    additional_z2_products=('imio.dashboard', 'Products.MeetingLiege',
                            'Products.PloneMeeting',
                            'Products.CMFPlacefulWorkflow',
                            'Products.PasswordStrength'),
    gs_profile_id='Products.MeetingLiege:testing',
    name="ML_TESTING_PROFILE")

ML_TESTING_PROFILE_FUNCTIONAL = FunctionalTesting(
    bases=(ML_TESTING_PROFILE, ), name="ML_TESTING_PROFILE_FUNCTIONAL")
Exemple #13
0
# -*- coding: utf-8 -*-
from plone.app.testing import FunctionalTesting
from plone.testing import z2
from plone.testing import zca
from Products.MeetingCommunes.testing import MCLayer

import Products.MeetingIDEA

MIDEA_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                             package=Products.MeetingIDEA,
                             name='MIDEA_ZCML')

MIDEA_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, MIDEA_ZCML),
                                 name='MIDEA_Z2')

MIDEA_TESTING_PROFILE = MCLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingIDEA,
    additional_z2_products=('imio.dashboard', 'Products.MeetingIDEA',
                            'Products.MeetingCommunes',
                            'Products.PloneMeeting',
                            'Products.CMFPlacefulWorkflow',
                            'Products.PasswordStrength'),
    gs_profile_id='Products.MeetingIDEA:testing',
    name="MIDEA_TESTING_PROFILE")

MIDEA_TESTING_PROFILE_FUNCTIONAL = FunctionalTesting(
    bases=(MIDEA_TESTING_PROFILE, ), name="MIDEA_TESTING_PROFILE_FUNCTIONAL")
Exemple #14
0
# -*- coding: utf-8 -*-
from plone.testing import z2, zca
from plone.app.testing import PloneWithPackageLayer
from plone.app.testing import FunctionalTesting
import imio.actionspanel

ACTIONSPANEL_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                                    package=imio.actionspanel,
                                    name='ACTIONSPANEL_ZCML')

ACTIONSPANEL_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, ACTIONSPANEL_ZCML),
                                        name='ACTIONSPANEL_Z2')

ACTIONSPANEL_TESTING_PROFILE = PloneWithPackageLayer(
    zcml_filename="testing.zcml",
    zcml_package=imio.actionspanel,
    additional_z2_products=(),
    name="ACTIONSPANEL_TESTING_PROFILE")

ACTIONSPANEL_TESTING_PROFILE_FUNCTIONAL = FunctionalTesting(
    bases=(ACTIONSPANEL_TESTING_PROFILE, ),
    name="ACTIONSPANEL_TESTING_PROFILE_FUNCTIONAL")
# -*- coding: utf-8 -*-
from plone.app.testing import FunctionalTesting
from plone.app.testing import IntegrationTesting
from plone.testing import z2
from plone.testing import zca
from Products.PloneMeeting.testing import PMLayer

import imio.pm.ws


class WSLayer(PMLayer):
    """ """


WS4PM_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                             package=imio.pm.ws,
                             name='WS4PM_ZCML')

WS4PM_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, WS4PM_ZCML),
                                 name='WS4PM_Z2')

WS4PM_PM_TEST_PROFILE = WSLayer(
    zcml_filename="testing.zcml",
    zcml_package=imio.pm.ws,
    additional_z2_products=('imio.dashboard',
                            'Products.PloneMeeting',
                            'Products.CMFPlacefulWorkflow',
                            'Products.PasswordStrength'),
    gs_profile_id='Products.PloneMeeting:testing',
    name="WS4PM_PM_TEST_PROFILE")
Exemple #16
0
from plone.app.robotframework.testing import REMOTE_LIBRARY_BUNDLE_FIXTURE
from plone.app.testing import FunctionalTesting
from plone.testing import z2
from plone.testing import zca
from Products.MeetingCommunes.testing import MCLayer

import Products.MeetingSeraing


class MSLayer(MCLayer):
    """ """


MS_ZCML = zca.ZCMLSandbox(filename="testing.zcml",
                          package=Products.MeetingSeraing,
                          name='MS_ZCML')

MS_Z2 = z2.IntegrationTesting(bases=(z2.STARTUP, MS_ZCML),
                              name='MS_Z2')

MS_TESTING_PROFILE = MSLayer(
    zcml_filename="testing.zcml",
    zcml_package=Products.MeetingSeraing,
    additional_z2_products=('imio.dashboard',
                            'Products.MeetingSeraing',
                            'Products.PloneMeeting',
                            'Products.CMFPlacefulWorkflow',
                            'Products.PasswordStrength'),
    gs_profile_id='Products.MeetingSeraing:testing',
    name="MS_TESTING_PROFILE")