[Setup] Problem with tests following Martins book

Taito Horiuchi dev at abita.fi
Sat Nov 15 10:10:20 UTC 2008


Hi, Johannes,

Your guess is right.
Deleting tests.py should solve the problem.

Good luck!!

Taito

2008/11/15 Johannes Ammon <johannes at ammon.ruhr.de>

> Hi all,
>
> I'm working my way through Martins excellent book, trying to set up a new
> Plone3.1 site.
>
> When I run the tests I get:
>
> ...
> Test-module import failures:
>
> Module: optilux.policy.tests
>
> AttributeError: 'module' object has no attribute 'test_suite'
> ...
>
> I think the reason is that src/optilux.policy/optilux/policy contains a
> directory "tests" and a file "tests.py". (Probably I made some mistake in
> copying the code from the book, but I cannot find it. And in the end I don't
> want to copy correctly but understand what I'm doing.)
>
> Now how can I solve this problem? Can I safely rename one of them? Can I
> safely ignore the error message?
>
> Pheew, I feel, there is still a lot I have to learn about the new plone.
>
> Thanks for your advice,
>
> Johannes
>
> _______________________________________________
> Setup mailing list
> Setup at lists.plone.org
> http://lists.plone.org/mailman/listinfo/setup
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.plone.org/pipermail/setup/attachments/20081115/69eb5637/attachment.htm


More information about the Setup mailing list