tests does not recognize non models.py apps
|Reported by:||Jari Pennanen||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
- Create Django app e.g.
tests.pyinside your app.
- Try to test this app using
manage.py test yourapp
It throws an error, why? I have many Django apps I prefer to test and they don't have a single model in them and never need to.
Currently workaround is to create empty
models.py to your app, though it is not very clean. Someone hasty might think that app has models, when in fact it is just templatetag library app or something like that with empty