[Checkins] SVN: z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/ Add a doctest example that makes use of a different ZCML layer.
Uli Fouquet
uli at gnufix.de
Wed Sep 3 07:48:44 EDT 2008
Log message for revision 90754:
Add a doctest example that makes use of a different ZCML layer.
Changed:
A z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/doctest07.txt
A z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/ftesting2.zcml
-=-
Added: z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/doctest07.txt
===================================================================
--- z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/doctest07.txt (rev 0)
+++ z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/doctest07.txt 2008-09-03 11:48:43 UTC (rev 90754)
@@ -0,0 +1,15 @@
+Functional doctest with different ZCML-layer
+============================================
+
+This is a doctest that uses a different ZCML file than the other ones
+in this package.
+
+:doctest:
+:functional-zcml-layer: ftesting2.zcml
+
+We didn't define a real environment in ftesting.zcml, but in
+functional tests certain often needed functions should be available
+automatically::
+
+ >>> getRootFolder
+ <function getRootFolder at 0x...>
Added: z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/ftesting2.zcml
===================================================================
--- z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/ftesting2.zcml (rev 0)
+++ z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/ftesting2.zcml 2008-09-03 11:48:43 UTC (rev 90754)
@@ -0,0 +1,13 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ i18n_domain="zope"
+ >
+
+ <!--
+ This is only a dummy layer to enable local tests and avoid
+ dependencies from packages we do not need badly.
+
+ For tests that include testbrowser tests and similar, write your
+ own ftesting.zcml with registration of principals etc.
+ -->
+</configure>
More information about the Checkins
mailing list