Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[soc2009/model-validation] Added some comments to explain why I set D…

…EBUG in tests

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c4767e642a4b64cc9f1bc53177b21dbd0adb01f2 1 parent c3e94fa
@HonzaKral HonzaKral authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  tests/modeltests/validation/test_unique.py
View
2  tests/modeltests/validation/test_unique.py
@@ -29,10 +29,12 @@ def test_unique_for_date_gets_picked_up(self):
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()
Please sign in to comment.
Something went wrong with that request. Please try again.