#25388: Allow disabling of all migrations during tests
-----------------------------------+------------------------------------
Reporter: Markus Holtermann | Owner: (none)
Type: New feature | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Comment (by Jaap Roes):
This would be a very welcome addition to Django. In the mean time, we've
been adding the following to all our projects `test_settings` to speed up
testing:
{{{
class DisableMigrations:
"""Disable migrations for all apps"""
def __getitem__(self, item):
return None
def __contains__(self, item):
return True
MIGRATION_MODULES = NoMigrations()
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25388#comment:20>
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/065.7755b6d3471fed799653c4db25a7e28f%40djangoproject.com.