#13985: tests does not recognize non models.py apps -------------------------------+-------------------------------------------- Reporter: Ciantic | Owner: nobody Status: new | Milestone: Component: Testing framework | Version: 1.2 Keywords: | Stage: Unreviewed Has_patch: 0 | -------------------------------+-------------------------------------------- 1. Create Django app e.g. `yourapp` ''without'' `models.py` 2. Create `tests.py` inside your app. 3. 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 `models.py`. -- Ticket URL: <http://code.djangoproject.com/ticket/13985> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.