#7835: Provide the ability for model definitions that are only availably during
testing
-------------------------------------+------------------------------------
Reporter: Russell Keith-Magee | Owner: nobody
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 Ahmad Abdallah):
Your solution is indeed less magic and much more isolated; reusing
automatic model discovery from appConfig makes a lot more sense than
attempting load them manually.
This will be a nice feature to have for 3.2.
The manual secondary migrations for models referenced outside of the test
app seems like a fair cost to get models inside tests, and from my
understanding, the test models are meant to be self-contained i.e models
created purely for tests that will reference each other only so it
shouldn't be much of an issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/7835#comment:48>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.b882090ea61a4ff865261f4598c04784%40djangoproject.com.