mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user