mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
PEP8 cleanup
Signed-off-by: Jason Myers <jason@jasonamyers.com>
This commit is contained in:
parent
0fdb692c6c
commit
7a61c68c50
128 changed files with 739 additions and 206 deletions
|
|
@ -62,6 +62,7 @@ class LoggingFiltersTest(TestCase):
|
|||
with self.settings(DEBUG=False):
|
||||
self.assertEqual(filter_.filter("record is not used"), False)
|
||||
|
||||
|
||||
class DefaultLoggingTest(TestCase):
|
||||
def setUp(self):
|
||||
self.logger = logging.getLogger('django')
|
||||
|
|
@ -83,6 +84,7 @@ class DefaultLoggingTest(TestCase):
|
|||
self.logger.error("Hey, this is an error.")
|
||||
self.assertEqual(output.getvalue(), 'Hey, this is an error.\n')
|
||||
|
||||
|
||||
class WarningLoggerTests(TestCase):
|
||||
"""
|
||||
Tests that warnings output for DeprecationWarnings is enabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue