Skip to content

Commit

Permalink
Allow the fucntional nodevmode testing layer to be used from instances
Browse files Browse the repository at this point in the history
as well.  That means the zopeskel files also needed a non-devmode
ftesting.zcml (called ftesting-base.zcml) and the necessary file path
manipulation was needed in zope.app.testing.functional.
  • Loading branch information
philikon committed Aug 18, 2006
1 parent dad5494 commit 36ad23a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions browser/ftests.py
Expand Up @@ -19,7 +19,7 @@

import zope.app.testing.functional
from zope.testing import doctest
from zope.app.testing.functional import BrowserTestCase
from zope.app.testing.functional import BrowserTestCase, FunctionalNoDevMode
from zope.app.testing.functional import FunctionalDocFileSuite


Expand Down Expand Up @@ -63,13 +63,6 @@ def testModuleListView(self):
self.checkForBrokenLinks(body, '/++apidoc++/modulelist.html',
basic='mgr:mgrpw')


NoDevModeLayer = zope.app.testing.functional.ZCMLLayer(
"ftesting-base.zcml",
__name__,
"NoDevModeLayer")


def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(APIDocTests))
Expand All @@ -80,7 +73,7 @@ def test_suite():
)

nodevmode = FunctionalDocFileSuite("nodevmode.txt")
nodevmode.layer = NoDevModeLayer
nodevmode.layer = FunctionalNoDevMode
suite.addTest(nodevmode)
return suite

Expand Down

0 comments on commit 36ad23a

Please sign in to comment.