[Checkins] SVN: z3c.testsetup/branches/ulif-cleanup/src/z3c/testsetup/tests/layered_cave/layer.py Register fully fledged ftesting.zcml.

Uli Fouquet uli at gnufix.de
Sat Oct 24 09:00:02 EDT 2009


Log message for revision 105259:
  Register fully fledged ftesting.zcml.
  

Changed:
  U   z3c.testsetup/branches/ulif-cleanup/src/z3c/testsetup/tests/layered_cave/layer.py

-=-
Modified: z3c.testsetup/branches/ulif-cleanup/src/z3c/testsetup/tests/layered_cave/layer.py
===================================================================
--- z3c.testsetup/branches/ulif-cleanup/src/z3c/testsetup/tests/layered_cave/layer.py	2009-10-24 12:58:02 UTC (rev 105258)
+++ z3c.testsetup/branches/ulif-cleanup/src/z3c/testsetup/tests/layered_cave/layer.py	2009-10-24 13:00:01 UTC (rev 105259)
@@ -4,6 +4,7 @@
 """
 
 import os
+import zope.app.testing
 from zope.app.testing.functional import ZCMLLayer
 
 # We define a ZCML test layer. ZCML layers are special as they define
@@ -11,7 +12,8 @@
 # want some ZCML registrations to be done, you can use it like so:
 FunctionalLayer1 = ZCMLLayer(
     # As first argument we need the absolute path of a ZCML file
-    os.path.join(os.path.dirname(__file__), 'ftesting.zcml'),
+    os.path.join(os.path.dirname(zope.app.testing.functional.__file__),
+                 'ftesting.zcml'),
 
     # Second argument is the module, where the layer is defined.
     __name__,



More information about the checkins mailing list