summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHonza Král <honza.kral@gmail.com>2009-12-29 04:05:17 +0000
committerHonza Král <honza.kral@gmail.com>2009-12-29 04:05:17 +0000
commitc4767e642a4b64cc9f1bc53177b21dbd0adb01f2 (patch)
tree887ea6a3cfd9d0f0165c534e44d9f8f5e5ef9d37
parentc3e94faa23dba7c49648bc19c643abd54da4f205 (diff)
downloaddjango-c4767e642a4b64cc9f1bc53177b21dbd0adb01f2.tar.gz
[soc2009/model-validation] Added some comments to explain why I set DEBUG in tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/modeltests/validation/test_unique.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modeltests/validation/test_unique.py b/tests/modeltests/validation/test_unique.py
index 2790d378c6..944697100f 100644
--- a/tests/modeltests/validation/test_unique.py
+++ b/tests/modeltests/validation/test_unique.py
@@ -29,10 +29,12 @@ class GetUniqueCheckTests(unittest.TestCase):
class PerformUniqueChecksTest(unittest.TestCase):
def setUp(self):
+ # set debug to True to gain access to connection.queries
self._old_debug, settings.DEBUG = settings.DEBUG, True
super(PerformUniqueChecksTest, self).setUp()
def tearDown(self):
+ # restore old debug value
settings.DEBUG = self._old_debug
super(PerformUniqueChecksTest, self).tearDown()