[Checkins] SVN: five.grok/trunk/ Use ZopeLite layer to ensure tests run
Martin Aspeli
optilude at gmx.net
Sun Nov 15 09:12:29 EST 2009
Log message for revision 105652:
Use ZopeLite layer to ensure tests run
Changed:
U five.grok/trunk/README.txt
U five.grok/trunk/src/five/grok/tests/test_all.py
-=-
Modified: five.grok/trunk/README.txt
===================================================================
--- five.grok/trunk/README.txt 2009-11-15 12:36:30 UTC (rev 105651)
+++ five.grok/trunk/README.txt 2009-11-15 14:12:29 UTC (rev 105652)
@@ -70,7 +70,7 @@
five.localsitemanager = 2.0.1
martian = 0.11.1
-Zope 2.12 is required. If you whish to use a previous version of Zope
+Zope 2.12 is required. If you wish to use a previous version of Zope
2, look at the version 1.0 of five.grok.
Modified: five.grok/trunk/src/five/grok/tests/test_all.py
===================================================================
--- five.grok/trunk/src/five/grok/tests/test_all.py 2009-11-15 12:36:30 UTC (rev 105651)
+++ five.grok/trunk/src/five/grok/tests/test_all.py 2009-11-15 14:12:29 UTC (rev 105652)
@@ -11,6 +11,7 @@
from five.grok.tests.doctest import doctestToPython
import os
+from Testing.ZopeTestCase.layer import ZopeLite as ZopeLiteLayer
def setUp(test=None):
testing.setUp(test)
@@ -73,15 +74,19 @@
def test_suite():
- return unittest.TestSuite([
-
- # Unit tests for your API
- doctestunit.DocFileSuite(
+
+ readmeSuite = doctestunit.DocFileSuite(
'README.txt', package='five.grok',
setUp=setUpWithGrokDoctest, tearDown=tearDownWithGrokDoctest,
optionflags=doctest.ELLIPSIS+
- doctest.NORMALIZE_WHITESPACE),
+ doctest.NORMALIZE_WHITESPACE)
+ readmeSuite.layer = ZopeLiteLayer
+
+ return unittest.TestSuite([
+ # Unit tests for your API
+ readmeSuite,
+
doctestunit.DocTestSuite(
module='five.grok.tests.adapters',
setUp=setUp, tearDown=testing.tearDown),
More information about the checkins
mailing list