[Grok-dev] functional test fails
Peter Bengtsson
peter at fry-it.com
Fri May 9 09:21:52 EDT 2008
I've forgotten where we left things off for that but I suspect it was
something we were hoping will be fixed with the next release.
Uli and I have prepared a new how-to when 0.13 comes out which I hope
will fix this. For now I'm going to change the how-to you read to
accommodate for this pitfall.
2008/5/9 Joachim Schmitz <js at aixtraware.de>:
> I am following Peter's testsetup howto
>
> http://grok.zope.org/documentation/how-to/writing%2Cdiscovering%2Crunning-tests-with-z3c.testsetup
>
> when trying to run the first functional-test I got:
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/fields.py",
> line 141, in fromUnicode
> ZopeXMLConfigurationError: File
> "/home/perry/WAeUP_ng/Campus/src/campus/ftesting.zcml", line 11.2-13.8
> ConfigurationError: ('Invalid value for', 'component', "ImportError:
> Couldn't import zope.app.securitypolicy.zopepolicy, No module named
> securitypolicy.zopepolicy")
>
>
> Tests with errors:
> runTest (zope.testing.testrunner.SetUpLayerFailure)
> Total: 2 tests, 0 failures, 1 errors in 7.114 seconds.
>
> after changing ftesting.zcml to:
> ...
> <!-- Typical functional testing security setup -->
> <securityPolicy
> component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy"
> />
>
> it worked.
>
> --
> Gruß Joachim
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
>
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
More information about the Grok-dev
mailing list