Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Commit

Permalink
Fixed tests and get ready for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
strichter committed Jul 24, 2009
1 parent aa7e5a7 commit b7ed254
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGES.txt
Expand Up @@ -2,6 +2,12 @@
CHANGES
=======

3.5.0 (2009-07-24)
------------------

- Update tests to latest package versions.


3.4.0 (2007-11-02)
------------------

Expand Down
11 changes: 10 additions & 1 deletion src/zope/wfmc/README.txt
Expand Up @@ -102,6 +102,9 @@ rejects the content for publication. We can use a condition for this:

>>> pd = process.ProcessDefinition('sample')
>>> zope.component.provideUtility(pd, name=pd.id)
Unregistered event:
UtilityRegistration(<BaseGlobalComponents base>, IProcessDefinition,
'sample', ProcessDefinition('sample'), None, u'')

>>> pd.defineActivities(
... author = process.ActivityDefinition(),
Expand Down Expand Up @@ -337,6 +340,9 @@ example by passing it to the definition constructor:

>>> pd = process.ProcessDefinition('sample', integration)
>>> zope.component.provideUtility(pd, name=pd.id)
Unregistered event:
UtilityRegistration(<BaseGlobalComponents base>, IProcessDefinition,
'sample', ProcessDefinition('sample'), None, u'')

>>> pd.defineActivities(
... author = process.ActivityDefinition(),
Expand Down Expand Up @@ -410,6 +416,9 @@ redefine the process:

>>> pd = process.ProcessDefinition('sample', integration)
>>> zope.component.provideUtility(pd, name=pd.id)
Unregistered event:
UtilityRegistration(<BaseGlobalComponents base>, IProcessDefinition,
'sample', ProcessDefinition('sample'), None, u'')

>>> pd.defineActivities(
... author = process.ActivityDefinition(),
Expand Down Expand Up @@ -1073,4 +1082,4 @@ Coming Soon
See also
---------
http://www.wfmc.org
http://www.wfmc.org/standards/standards.htm
http://www.wfmc.org/standards/standards.htm
21 changes: 10 additions & 11 deletions src/zope/wfmc/tests.py
Expand Up @@ -91,8 +91,6 @@ def test_multiple_input_parameters():
>>> proc = pd()
>>> proc.start(99, 42)
99 42
"""

def test_pickling():
Expand Down Expand Up @@ -123,7 +121,6 @@ def test_pickling():
>>> import pickle
>>> s = pickle.dumps(proc)
"""

def test_inputoutput():
Expand Down Expand Up @@ -177,8 +174,8 @@ def test_inputoutput():
>>> proc.start(1)
>>> proc.workflowRelevantData.x
2
"""

def test_wrong_number_process_args_error_message():
"""
Expand All @@ -197,20 +194,22 @@ def test_wrong_number_process_args_error_message():
Traceback (most recent call last):
...
TypeError: Too many arguments. Expected 0. got 1
"""


def test_suite():
from zope.testing import doctest
suite = unittest.TestSuite()
suite.addTest(doctest.DocFileSuite('README.txt', tearDown=tearDown,
setUp=testing.setUp))
suite.addTest(doctest.DocFileSuite(
'xpdl.txt', tearDown=tearDown, setUp=setUp,
'README.txt',
setUp=testing.setUp, tearDown=tearDown,
optionflags=doctest.NORMALIZE_WHITESPACE))
suite.addTest(doctest.DocFileSuite(
'xpdl.txt',
setUp=setUp, tearDown=tearDown,
optionflags=doctest.NORMALIZE_WHITESPACE))
suite.addTest(doctest.DocTestSuite(tearDown=testing.tearDown,
setUp=testing.setUp))
suite.addTest(doctest.DocTestSuite(
setUp=testing.setUp, tearDown=testing.tearDown))
return suite

if __name__ == '__main__':
Expand Down

0 comments on commit b7ed254

Please sign in to comment.