#7835: Provide the ability for model definitions that are only availably during testing -------------------------------------+------------------------------------ Reporter: russellm | Owner: kkubasik Type: New feature | Status: new Component: Testing framework | Version: master Severity: Normal | Resolution: Keywords: feature test models | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------
Comment (by JocelynD): Replying to [comment:32 adrian_lc]: > With 1.6 and the new discovery-runner the models in `tests.py` are not being installed anymore, so this feature would be way more useful now. I don't get it, I did a minimal test case (attached) with django 1.6: * a "buggy" project * a "tested" app * tested/models.py contains a single abstract model `AbstractTestStat` * tested/tests.py contains a `TestStat` model inheriting from `AbstractTestStat` * tested/tests.py contains a single test testing TestStat Either ./manage.py test or ./manage.py test tested Works fine, populating the test db and succeeding test as expected. -- Ticket URL: <https://code.djangoproject.com/ticket/7835#comment:34> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.b16f768157db55de7b998f3e4bb8a4e7%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.