diff --git a/collective/dexterity_class/IntegrationTests.txt b/collective/dexterity_class/IntegrationTests.txt new file mode 100644 index 0000000..8dded8f --- /dev/null +++ b/collective/dexterity_class/IntegrationTests.txt @@ -0,0 +1,27 @@ +Integration Tests + + >>> portal + + + >>> portal_name + 'plone' + + >>> folder + + + >>> user_name + 'test_user_1_' + + >>> user_password + 'secret' + + >>> user_role + 'test_role_1_' + + >>> app.REQUEST + + + >>> app + + + diff --git a/collective/dexterity_class/tests.py b/collective/dexterity_class/tests.py index 4bd6c76..7f2a437 100644 --- a/collective/dexterity_class/tests.py +++ b/collective/dexterity_class/tests.py @@ -1,7 +1,6 @@ +import doctest import unittest -#from zope.testing import doctestunit -#from zope.component import testing from Testing import ZopeTestCase as ztc from Products.Five import fiveconfigure @@ -11,6 +10,9 @@ import collective.dexterity_class +OPTION_FLAGS = doctest.NORMALIZE_WHITESPACE | \ + doctest.ELLIPSIS + class TestCase(ptc.PloneTestCase): @@ -41,9 +43,11 @@ def test_suite(): # Integration tests that use PloneTestCase - #ztc.ZopeDocFileSuite( - # 'README.txt', package='collective.dexterity_class', - # test_class=TestCase), + ztc.ZopeDocFileSuite( + 'IntegrationTests.txt', + package='collective.dexterity_class', + optionflags=OPTION_FLAGS, + test_class=TestCase), #ztc.FunctionalDocFileSuite( # 'browser.txt', package='collective.dexterity_class',