[Distutils] venusian pain was: Where should I put tests when packaging python modules?
Wichert Akkerman
wichert at wiggy.net
Sat Oct 10 21:47:41 CEST 2015
> On 10 Oct 2015, at 13:06, Thomas Güttler <guettliml at thomas-guettler.de> wrote:
>
> Am 10.10.2015 um 10:47 schrieb Wichert Akkerman:
>> Also having test code in the package can be very painful if you use tools like venusian which scan and try to import all Python files.
>
>
> Hi Wichert Akkerman,
>
> can you please explain this pain?
Importing tests often leads to problems for two reasons: 1) tests try to import things that are not normally installed (mock, pytest, redis-mock, etc.) which breaks application startup, and 2) some tests have import side-effects which can be fine for testing purposes, but should never trigger during normal usage.
Wichert.
More information about the Distutils-SIG
mailing list