Django test discovery fails
<p>I have a bunch of apps, all are inside a <code>apps</code> folder.
I'm adding some tests to my project.
It works well, the models / templates / static discovery works super well.
Now I would like to add some tests to my projects, so I created a <code>tests.py</code> file inside my app. When I want to run the test (<code>manage.py test</code>) it does not work. I have to specify the name of the app to make it works.
I tried with django-nose and I have to same output. I figure out it's because my apps are nested inside a folder but every other django discovery works.</p>

<pre><code>ttn_org
âââ apps
âÂ Â  âââ app1
âÂ Â  âÂ Â  âââ __init__.py
âÂ Â  âÂ Â  âââ forms.py
âÂ Â  âÂ Â  âââ urls.py
âÂ Â  âÂ Â  âââ views.py
âÂ Â  âââ app2
âÂ Â  âÂ Â  âââ __init__.py
âÂ Â  âÂ Â  âââ forms.py
âÂ Â  âÂ Â  âââ tests.py &lt;- does not work
âÂ Â  âÂ Â  âââ urls.py
âÂ Â  âÂ Â  âââ views.py
âââ app3
âÂ Â  âââ __init__.py
âÂ Â  âââ tests.py &lt;- does work
âÂ Â  âââ forms.py
âÂ Â  âââ urls.py
âÂ Â  âââ views.py
âââ manage.py
âââ requirements.txt
âââ project
    âââ __init__.py
    âââ celery.py
    âââ settings.py
    âââ urls.py
    âââ wsgi.py
</code></pre>

<p>I have <code>sys.path.insert(0, os.path.join(BASE_DIR, 'apps'))</code> to add make the apps folder usable</p>

<p>I installed <code>django-nose</code> and run it with the option <code>--where apps</code></p>

python django testing discover