[Checkins] SVN: z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/ Add a doctest example with functional ZCML layer.
Uli Fouquet
uli at gnufix.de
Wed Sep 3 07:45:52 EDT 2008
Log message for revision 90751:
Add a doctest example with functional ZCML layer.
Changed:
A z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/doctest04.txt
A z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/ftesting.zcml
-=-
Added: z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/doctest04.txt
===================================================================
--- z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/doctest04.txt (rev 0)
+++ z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/doctest04.txt 2008-09-03 11:45:51 UTC (rev 90751)
@@ -0,0 +1,12 @@
+A functional doctest with ZCML-layer
+====================================
+
+:doctest:
+:functional-zcml-layer: ftesting.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/ftesting.zcml
===================================================================
--- z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/ftesting.zcml (rev 0)
+++ z3c.testsetup/branches/new_markers/src/z3c/testsetup/tests/othercave/ftesting.zcml 2008-09-03 11:45:51 UTC (rev 90751)
@@ -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