[Grok-dev] Adder tutorial code doesn't test
Peter Bengtsson
peter at fry-it.com
Sun Mar 2 14:50:40 EST 2008
To whoever wrote the otherwise lovely Adder tutorial
http://grok.zope.org/documentation/tutorial/adder-an-adding-machine-sample-application
This is what happens when you try to test it::
peterbe at trillian:/tmp/Adder $ ./bin/test
Running tests at level 1
Running unit tests:
Running:
..
Ran 2 tests with 0 failures and 0 errors in 0.014 seconds.
Running zope.app.testing.functional.Functional tests:
Set up zope.app.testing.functional.Functional Traceback (most recent
call last):
File "/tmp/Adder/eggs/tmpaEE3Ze/zope.testing-3.5.1-py2.5.egg/zope/testing/testrunner.py",
line 1252, in run_layer
File "/tmp/Adder/eggs/tmpaEE3Ze/zope.testing-3.5.1-py2.5.egg/zope/testing/testrunner.py",
line 1377, in setup_layer
File "/tmp/Adder/eggs/tmpUb6-dY/zope.app.testing-3.4.0a1-py2.5.egg/zope/app/testing/functional.py",
line 196, in setUp
File "/tmp/Adder/eggs/tmpUb6-dY/zope.app.testing-3.4.0a1-py2.5.egg/zope/app/testing/functional.py",
line 129, in __init__
File "/tmp/Adder/eggs/tmpzSbyNB/zope.app.debug-3.4.0a1-py2.5.egg/zope/app/debug/debug.py",
line 36, in __init__
File "/tmp/Adder/eggs/tmpYDN3j0/zope.app.appsetup-3.4.1-py2.5.egg/zope/app/appsetup/appsetup.py",
line 111, in config
File "/tmp/Adder/eggs/tmp0sGqdd/zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py",
line 610, in file
File "/tmp/Adder/eggs/tmp0sGqdd/zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py",
line 539, in include
File "/tmp/Adder/eggs/tmp0sGqdd/zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py",
line 427, in openInOrPlain
IOError: [Errno 2] No such file or directory:
'/tmp/Adder/parts/test/ftesting.zcml'
Tests with errors:
runTest (zope.testing.testrunner.SetUpLayerFailure)
Total: 2 tests, 0 failures, 1 errors in 0.022 seconds.
peterbe at trillian:/tmp/Adder $ ls -l parts/test/
total 0
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
More information about the Grok-dev
mailing list