[Python-modules-commits] [python-django-treebeard] 09/11: Re-enable model migrations during tests.
Michael Fladischer
fladi at moszumanska.debian.org
Wed Jul 12 20:44:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
fladi pushed a commit to branch master
in repository python-django-treebeard.
commit ac2b1ca04126e5af7c43a60c6ca822832dec32ea
Author: Michael Fladischer <fladi at debian.org>
Date: Fri Jun 23 11:50:11 2017 +0200
Re-enable model migrations during tests.
---
treebeard/tests/settings.py | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/treebeard/tests/settings.py b/treebeard/tests/settings.py
index 9b26215..422da86 100644
--- a/treebeard/tests/settings.py
+++ b/treebeard/tests/settings.py
@@ -56,16 +56,16 @@ SECRET_KEY = '7r33b34rd'
# This little hacks forces Django into the old syncdb behaviour,
# creating models without migrations.
-class DisableMigrations(object):
-
- def __contains__(self, item):
- return True
-
- def __getitem__(self, item):
- return "notmigrations"
-
-
-MIGRATION_MODULES = DisableMigrations()
+# class DisableMigrations(object):
+#
+# def __contains__(self, item):
+# return True
+#
+# def __getitem__(self, item):
+# return "notmigrations"
+#
+#
+# MIGRATION_MODULES = DisableMigrations()
INSTALLED_APPS = [
'django.contrib.auth',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django-treebeard.git
More information about the Python-modules-commits
mailing list