[py-dev] Newbie with couple of questions

Michael Hipp Michael at Hipp.com
Fri Feb 16 15:48:36 CET 2007


holger krekel wrote:
> 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). 

Thanks, holger and Maciek. I'm checking it out of svn now.

Michael



More information about the Pytest-dev mailing list