[Checkins] SVN: z3c.form/trunk/src/z3c/form/tests/test_doc.py Well, Chameleon seems to be fixed\! Now form.txt runs fine with zope.pagetemplate and chameleon.
Stephan Richter
srichter at gmail.com
Mon Nov 7 13:09:59 UTC 2011
Log message for revision 123303:
Well, Chameleon seems to be fixed\! Now form.txt runs fine with zope.pagetemplate and chameleon.
Changed:
U z3c.form/trunk/src/z3c/form/tests/test_doc.py
-=-
Modified: z3c.form/trunk/src/z3c/form/tests/test_doc.py
===================================================================
--- z3c.form/trunk/src/z3c/form/tests/test_doc.py 2011-11-07 11:06:54 UTC (rev 123302)
+++ z3c.form/trunk/src/z3c/form/tests/test_doc.py 2011-11-07 13:09:58 UTC (rev 123303)
@@ -45,6 +45,12 @@
tests = ((
doctest.DocFileSuite(
+ '../form.txt',
+ setUp=setUp, tearDown=testing.tearDown,
+ optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
+ checker=checker,
+ ),
+ doctest.DocFileSuite(
'../action.txt',
setUp=setUp, tearDown=testing.tearDown,
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
@@ -161,42 +167,4 @@
))
for setUp in setups)
- tests = tuple(tests) + ((
-
- # the form.txt test will include the select_display widget which uses
- # another pattern for iterate the repeat dict.
-
- # z3c.pt and chameleon are not compatible right now. Traversing the
- # repeat wwrapper is not done the same way. ZPT uses the following
- # pattern
- # <tal:block condition="not:repeat/value/end">, </tal:block>
- #
- # chameleon only supports python style traversin:
- # <tal:block condition="not:python:repeat['value'].end">, </tal:block>
- #
- # this is not a show stopper at all but I hope chameleon will support
- # the path travers style for repeat in the future.
- doctest.DocFileSuite(
- '../form.txt',
- setUp=testing.setUpZPT, tearDown=testing.tearDown,
- optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
- checker=checker,
- ),
-
- # see line: 1157 for the error
- # run this test with setUp=testing.setUpZPT to see that this
- # test is not failing with ZPT
- # remove this test file and let the form.txt test run with both setup
- # after fixing the chameleon issue
- doctest.DocFileSuite(
- '../form-chameleon-issue-repeat-addons.txt',
- setUp=testing.setUpZ3CPT, tearDown=testing.tearDown,
- optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
- checker=checker,
- ),
- ))
-
-
-
-
return unittest.TestSuite(itertools.chain(*tests))
More information about the checkins
mailing list