Generally, all your unittests will be inside a "tests" directory that lives outside your package directory. That directory will be excluded when you build or install your project using your setup.py script. Take a look at some popular 3rd party python packages to see how they structure their projects and setup their setup.py.
On Mon, Jul 25, 2016 at 9:45 AM, Joaquin Alzola <joaquin.alz...@lebara.com> wrote: > Hi Guys > > I have a question related to unittest. > > I suppose a SW that is going to live will not have any trace of unittest > module along their code. > > So is it the way to do it to put all unittest in a preproduction > environment and then remove all lines relate to unittest once the SW is > release into production? > > What is the best way of working with unittest? > > BR > > Joaquin > > This email is confidential and may be subject to privilege. If you are not > the intended recipient, please do not copy or disclose its content but > contact the sender immediately upon receipt. > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list