I think I&#39;ve always been in happy land when it comes to naming and other conventions for testing.<div><br></div><div>Like prefacing your test files with &quot;test&quot; and placing them in a &quot;test[s]&quot; directory. There are slight </div>

<div>differences to that, like adding the test[s] module inside the actual package or not, which is still a rather</div><div>acceptable difference.</div><div><br></div><div>And I am completely OK with those slight differences.</div>

<div><br></div><div>I am currently faced with a Django application that has tests in a `tests.py` file or a `tests` module that</div><div>imports every test class that needs to be tested in `__init__.py`. I tried looking for test discovery and</div>

<div>auto-discovery in the Django docs but came empty handed [0]</div><div><br></div><div>The reasoning for the above test structure is because Django&#39;s test runner will look for a tests module and </div><div>will run tests found there. If it is a directory, then only tests that are imported in `__init__.py` will be run.</div>

<div><br></div><div>Again, no docs that I could find to support that (maybe this is a *custom* thing in this app?)</div><div><br></div><div>My issue with this, is that it lends to have test files that are named `feature_foo.py` and not `test_foo.py`.</div>

<div>Which it ends up breaking everything I&#39;ve been used to until this moment. </div><div><br></div><div>py.test, nose and I *think* that unittest2 have the same convention for autodiscovery.</div><div><br></div><div>

I am not complaining though, but my questions are: </div><div><br></div><div>* Am I wrong to have assumed we had a testing convention?</div><div>* Is it just Django that does something like this? Or where are the docs that state otherwise?</div>

<div><br></div><div>Feedback/input is greatly appreciated!</div><div><br></div><div><br></div><div>-Alfredo</div><div><br></div><div><br></div><div><br></div><div>[0] <a href="https://docs.djangoproject.com/search/?q=test+discovery&amp;release=5">https://docs.djangoproject.com/search/?q=test+discovery&amp;release=5</a></div>