summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2013-02-28 14:20:21 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2013-02-28 14:20:21 (GMT)
commita7c20baaab66ca2eabd095e16ce0e9aadf8e8ddc (patch)
tree415f85c860faee5723728c6f192d6b683c71556f
parentda99566fceb8ebadabe0455e0fdc3eb680f9d48a (diff)
downloadcollective.dms.batchimport-a7c20baaab66ca2eabd095e16ce0e9aadf8e8ddc.zip
collective.dms.batchimport-a7c20baaab66ca2eabd095e16ce0e9aadf8e8ddc.tar.gz
collective.dms.batchimport-a7c20baaab66ca2eabd095e16ce0e9aadf8e8ddc.tar.bz2
add testing files
-rw-r--r--src/collective/dms/batchimport/profiles/testing/collective_dms_batchimport_marker.txt1
-rw-r--r--src/collective/dms/batchimport/profiles/testing/controlpanel.xml20
-rw-r--r--src/collective/dms/batchimport/profiles/testing/metadata.xml7
-rw-r--r--src/collective/dms/batchimport/profiles/testing/registry.xml4
-rw-r--r--src/collective/dms/batchimport/testing.py28
-rw-r--r--src/collective/dms/batchimport/testing.zcml20
6 files changed, 80 insertions, 0 deletions
diff --git a/src/collective/dms/batchimport/profiles/testing/collective_dms_batchimport_marker.txt b/src/collective/dms/batchimport/profiles/testing/collective_dms_batchimport_marker.txt
new file mode 100644
index 0000000..8089e33
--- /dev/null
+++ b/src/collective/dms/batchimport/profiles/testing/collective_dms_batchimport_marker.txt
@@ -0,0 +1 @@
+Profile marker \ No newline at end of file
diff --git a/src/collective/dms/batchimport/profiles/testing/controlpanel.xml b/src/collective/dms/batchimport/profiles/testing/controlpanel.xml
new file mode 100644
index 0000000..84d883c
--- /dev/null
+++ b/src/collective/dms/batchimport/profiles/testing/controlpanel.xml
@@ -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>
diff --git a/src/collective/dms/batchimport/profiles/testing/metadata.xml b/src/collective/dms/batchimport/profiles/testing/metadata.xml
new file mode 100644
index 0000000..d42db31
--- /dev/null
+++ b/src/collective/dms/batchimport/profiles/testing/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<metadata>
+ <version>0001</version>
+ <dependencies>
+ <dependency>profile-collective.dms.mailcontent:default</dependency>
+ </dependencies>
+</metadata>
diff --git a/src/collective/dms/batchimport/profiles/testing/registry.xml b/src/collective/dms/batchimport/profiles/testing/registry.xml
new file mode 100644
index 0000000..264145c
--- /dev/null
+++ b/src/collective/dms/batchimport/profiles/testing/registry.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<registry>
+ <records interface="collective.dms.batchimport.batchimport.ISettings" />
+</registry> \ No newline at end of file
diff --git a/src/collective/dms/batchimport/testing.py b/src/collective/dms/batchimport/testing.py
new file mode 100644
index 0000000..a4bf3ea
--- /dev/null
+++ b/src/collective/dms/batchimport/testing.py
@@ -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")
diff --git a/src/collective/dms/batchimport/testing.zcml b/src/collective/dms/batchimport/testing.zcml
new file mode 100644
index 0000000..29c65c6
--- /dev/null
+++ b/src/collective/dms/batchimport/testing.zcml
@@ -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>