> I found Plone Popoll (http://plone.org/products/plonepopoll) and I test it.
> It seems to be working fine but I would like to run the test suite included
> with this Zope 2 style product.
>
> The only way I've found to run the test was to include this in develop.cfg:
>
> [buildout]
> test-packages =
>    Products.PlonePopoll
>
> But when I run bin/test I get the following error:
>
> $ bin/test
> Test-module import failures:
>
> Module: Products.PlonePopoll.tests.testPlonePopoll
>
> Traceback (most recent call last):
>  File
> "/home/hvelarde/Plone-4.0-UnifiedInstaller/IFE/buildout-cache/eggs/Products.PlonePopoll-2.7.3b1-py2.6.egg/Products/PlonePopoll/__init__.py",
> line 27, in <module>
>    from AccessControl.Permissions import view_management_screens
> ImportError: No module named AccessControl.Permissions
>
>
>
> Test-modules with import problems:
>  Products.PlonePopoll.tests.testPlonePopoll
> Total: 0 tests, 0 failures, 0 errors in 0.000 seconds.
>
> Seems to me that the test is not loading the whole thing.

I suspect Products.PlonePopoll does not declare its dependencies
properly. Look at the bin/test script. If the path of the Zope2 egg +
friends are not there, it's likely you need to add 'Zope2' and maybe
'Plone' to the install_requires list in setup.py.

Martin
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to