[TIP] including tests in packages, or not

Doug Latornell doug at sadahome.ca
Sun Sep 13 20:54:25 PDT 2009


On Sun, Sep 13, 2009 at 6:55 PM, C. Titus Brown <ctb at msu.edu> wrote:
>
>    tagnabbit/
>       __init__.py
>       ...
>       tests/
>

That's what I pretty much always do, unless I'm writing something that
doesn't live in a package.  I guess I'm biased by having learned how
to structure packages from Pylons and Turbogears where this is the
recommended way.  Works fine for me, with no downsides that I've
noticed.

But now you have me marveling a bit that I've never thought much about
putting my tests anywhere else in projects...

Doug



More information about the testing-in-python mailing list