[Grok-dev] Adder tutorial code doesn't test

Luciano Ramalho luciano at ramalho.org
Sun Mar 2 15:27:51 EST 2008


On Sun, Mar 2, 2008 at 4:50 PM, Peter Bengtsson <peter at fry-it.com> wrote:
> To whoever wrote the otherwise lovely Adder tutorial
>  http://grok.zope.org/documentation/tutorial/adder-an-adding-machine-sample-application

Hey, Peter, thanks for reporting this.

The Adder tutorial was written by Kevin Teague, but I am to blame for
the app itself.

Right now I am looking into the problem, which probably has something
to do with the fact that I wrote Adder in the Jurassic era of Grok.

I'll report back when it's fixed.

Cheers,

Luciano


On Sun, Mar 2, 2008 at 4:50 PM, Peter Bengtsson <peter at fry-it.com> wrote:
> 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
>  _______________________________________________
>  Grok-dev mailing list
>  Grok-dev at zope.org
>  http://mail.zope.org/mailman/listinfo/grok-dev
>


More information about the Grok-dev mailing list