1. Luke Plant
  2. django


Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed ed6af00

[soc2009/model-validation] Added some comments to explain why I set DEBUG in tests

  • Participants
  • Parent commits dbe510d
  • Branches soc2009/model-validation

Comments (0)

Files changed (1)

File tests/modeltests/validation/test_unique.py

View file
  • Ignore whitespace
 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()