[Checkins] SVN: z3c.jbot/trunk/z3c/jbot/tests/common.py Missing from last commit.
Malthe Borch
mborch at gmail.com
Thu Sep 9 03:43:25 EDT 2010
Log message for revision 116242:
Missing from last commit.
Changed:
A z3c.jbot/trunk/z3c/jbot/tests/common.py
-=-
Added: z3c.jbot/trunk/z3c/jbot/tests/common.py
===================================================================
--- z3c.jbot/trunk/z3c/jbot/tests/common.py (rev 0)
+++ z3c.jbot/trunk/z3c/jbot/tests/common.py 2010-09-09 07:43:25 UTC (rev 116242)
@@ -0,0 +1,17 @@
+import zope.component.testing
+import zope.configuration.xmlconfig
+
+
+def setUp(test):
+ zope.component.testing.setUp(test)
+
+ import z3c.jbot
+ zope.configuration.xmlconfig.XMLConfig('configure.zcml', z3c.jbot)()
+
+ # enable five.pt if present
+ try:
+ import five.pt
+ except ImportError:
+ pass
+ else:
+ zope.configuration.xmlconfig.XMLConfig('configure.zcml', five.pt)()
More information about the checkins
mailing list