On 8/30/10 16:54 , Daniel Kiedrowski wrote: > Hey, > I am quite new to Plone and working through Martin Aspeli's book > "Professional Plone Development". I am trying it with Plone 4.0rc1 and I > don't get this unit tests running. (Chapter 5). > > I figured out that bin/instance teste -s optilux.policy wont work with > Plone4.0 and I installed zc.recipe.testrunner with my buildout: > > [test] > recipe = zc.recipe.testrunner > eggs = optilux.policy > extra-paths = ../lib/python > defaults = ['--exit-with-status', '--auto-color', '--auto-progress'] > > But when I try bin/test -s optilux.policy I get the following error: > > Test-module import failures: > > Module: optilux.policy.tests.test_setup > > Traceback (most recent call last): > File > "/Users/me/plone/optilux/src/optilux.policy/optilux/policy/tests/test_setup.py", > line 2, in<module> > from optilux.policy.tests.base import OptiluxPolicyTestCase > File > "/Users/me/plone/optilux/src/optilux.policy/optilux/policy/tests/base.py", > line 1, in<module> > from Products.Five import zcml > ImportError: No module named Products.Five > > Do I have to configure somthing else for zc.recipe.testrunner in order > to get it to find everything?
Make sure your package has a dependency on the Plone package declared in setup.py, and then rerun buildout. Wichert. _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
