[py-dev] Newbie with couple of questions
holger krekel
holger at merlinux.de
Fri Feb 16 10:32:15 CET 2007
Hi Michael!
On Thu, Feb 15, 2007 at 20:01 -0600, Michael Hipp wrote:
> I'm looking seriously at py.test for my testing needs. Couple of questions:
>
> - Is there a "Users" list somewhere? (I wouldn't want to clog up a dev list
> with lots of messages like this one.)
it's fine to use py-dev for it!
> - Can test_ files be kept in a subdirectory of the project (i.e. keep tests in
> /projects/myproj/tests rather than in /projects/myproj)?
yes, but make sure that tests/ has an (empty) __init__.py file.
> - Is there a mechanism for detecting messages (in similar manner to detecting
> exceptions) when using a publish-subscribe scheme to decouple the MVC pieces
> in an application? Specifically I'm using lib.pubsub from wxPython.
I don't know this particular one. You may extend py.test with
a conftest.py file (see py/doc/impl-test.txt for info on how
to get started on this).
best,
holger
More information about the py-dev
mailing list