Op 20-10-10 02:22, Héctor Velarde schreef: > Hi there! > > I'm working on a new project and one of the requirements is to have polls. > > 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. > > Any hints? > > Thank you very much for your support.
I made a checkout from trunk, added a bootstrap.py and this buildout.cfg: [buildout] extends = http://svn.plone.org/svn/collective/buildout/plonetest/test-4.x.cfg package-name = Products.PlonePopoll bin/test then works for me: ... Ran 9 tests with 0 failures and 0 errors in 1.431 seconds. -- Maurits van Rees Programmer, Zest Software _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
