[Grok-dev] functional test fails
Joachim Schmitz
js at aixtraware.de
Fri May 9 09:15:37 EDT 2008
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
More information about the Grok-dev
mailing list