From 065d8b883bdc5c89d03aeccf47f5c910704e405c Mon Sep 17 00:00:00 2001 From: chaoflow Date: Wed, 12 Nov 2008 18:28:23 +0000 Subject: [PATCH] paula.testing: support product dependencies git-svn-id: https://svn.plone.org/svn/collective/paula/trunk@75655 db7f04ef-aaf3-0310-a811-c281ed44c4ad --- paula.testing/src/paula/testing/plonetesting.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paula.testing/src/paula/testing/plonetesting.py b/paula.testing/src/paula/testing/plonetesting.py index 6218335..55b836d 100644 --- a/paula.testing/src/paula/testing/plonetesting.py +++ b/paula.testing/src/paula/testing/plonetesting.py @@ -13,7 +13,7 @@ from kss.core.tests.base import KSSLayer, KSSViewTestCase from paula.testing.testing import my_import @onsetup -def setup_package(pkg_name): +def setup_package(pkg_name, deps=[]): """ The @onsetup decorator causes the execution of this body to be deferred until the setup of the Plone site testing layer. @@ -33,6 +33,8 @@ def setup_package(pkg_name): # the ZCML. ztc.installPackage(pkg_name) + for x in deps: + ztc.installPackage(x) class PloneTestCase(ptc.PloneTestCase): """Base class used for test cases -- 2.11.4.GIT