add testing files

This commit is contained in:
Frédéric Péters 2013-02-28 15:20:21 +01:00
parent da99566fce
commit a7c20baaab
6 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<?xml version="1.0"?>
<object
name="portal_controlpanel"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="collective.dms.batchimport"
purge="False">
<configlet
title="Batch Import"
action_id="collective.dms.batchimport"
appId="collective.dms.batchimport"
category="Products"
condition_expr=""
url_expr="string:${portal_url}/@@batchimport-controlpanel"
icon_expr="string:${portal_url}/++resource++batchimport.png"
visible="True"
i18n:attributes="title">
<permission>Manage Portal</permission>
</configlet>
</object>

View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<metadata>
<version>0001</version>
<dependencies>
<dependency>profile-collective.dms.mailcontent:default</dependency>
</dependencies>
</metadata>

View File

@ -0,0 +1,4 @@
<?xml version="1.0"?>
<registry>
<records interface="collective.dms.batchimport.batchimport.ISettings" />
</registry>

View File

@ -0,0 +1,28 @@
# -*- coding: utf8 -*-
from plone.app.testing import PloneWithPackageLayer
from plone.app.testing import IntegrationTesting
from plone.app.testing import FunctionalTesting
import collective.dms.batchimport
class DmsBatchimportLayer(PloneWithPackageLayer):
def setUpPloneSite(self, portal):
self.applyProfile(portal, 'collective.dms.batchimport:testing')
COLLECTIVE_DMS_BATCHIMPORT = DmsBatchimportLayer(
zcml_package=collective.dms.batchimport,
zcml_filename='testing.zcml',
gs_profile_id='collective.dms.batchimport:testing',
name="COLLECTIVE_DMS_BATCHIMPORT")
INTEGRATION = IntegrationTesting(
bases=(COLLECTIVE_DMS_BATCHIMPORT, ),
name="INTEGRATION")
FUNCTIONAL = FunctionalTesting(
bases=(COLLECTIVE_DMS_BATCHIMPORT, ),
name="FUNCTIONAL")

View File

@ -0,0 +1,20 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="collective.dms.batchimport">
<include file="configure.zcml" />
<include package="ecreall.helpers.testing" />
<genericsetup:registerProfile
name="testing"
title="collective.dms.batchimport tests"
directory="profiles/testing"
description="Steps to ease tests of collective.dms.batchimport"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>
</configure>