Skip to content

Commit

Permalink
One test failure less
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Dec 26, 2009
1 parent 9b0f76b commit caa450c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/five/formlib/tests/formlib.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ this test:
>>> from Products.Five import zcml
>>> import Products.Five
>>> zcml.load_config('meta.zcml', Products.Five)
>>> import five.formlib
>>> import five.formlib.tests
>>> zcml.load_config('configure.zcml', package=Products.Five)
>>> zcml.load_config('configure.zcml', package=five.formlib)
>>> zcml.load_config('configure.zcml', package=five.formlib.tests)

Finally, we need to setup a traversable folder. Otherwise, Five won't get
Expand Down
4 changes: 3 additions & 1 deletion src/five/formlib/tests/forms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ We need to configure all of Five for the functional test:
>>> from Products.Five import zcml
>>> import Products.Five
>>> zcml.load_config('meta.zcml', Products.Five)
>>> import five.formlib
>>> import five.formlib.tests
>>> zcml.load_config('configure.zcml', package=Products.Five)
>>> zcml.load_config('configure.zcml', package=five.formlib)
>>> zcml.load_config('configure.zcml', package=five.formlib.tests)

Finally, we need to setup a traversable folder. Otherwise, Five won't
Expand Down Expand Up @@ -471,7 +473,7 @@ Object widget:
A little more complex is the ``ObjectWidget``. Here we simply test
that the edit form works:

>>> from Products.Five.form.tests.schemacontent import \
>>> from five.formlib.tests.schemacontent import \
... manage_addComplexSchemaContent
>>> n = manage_addComplexSchemaContent(self.folder.ftf, 'objecttest')

Expand Down
6 changes: 2 additions & 4 deletions src/five/formlib/tests/test_formlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ def test_get_widgets_for_schema_fields():
def test_suite():
return unittest.TestSuite([
DocTestSuite(),
FunctionalDocFileSuite('forms.txt',
package="five.formlib.tests",),
FunctionalDocFileSuite(
'formlib.txt', package='five.formlib.tests'),
FunctionalDocFileSuite('forms.txt', package="five.formlib.tests",),
FunctionalDocFileSuite('formlib.txt', package='five.formlib.tests'),
])

0 comments on commit caa450c

Please sign in to comment.