mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #21977 -- Deprecated SimpleTestCase.urls
This commit is contained in:
committed by
Tim Graham
parent
d2f4553d70
commit
cd914e31c9
@@ -363,11 +363,9 @@ class SetupConfigureLogging(TestCase):
|
||||
self.assertTrue(dictConfig.called)
|
||||
|
||||
|
||||
@override_settings(DEBUG=True)
|
||||
@override_settings(DEBUG=True, ROOT_URLCONF='logging_tests.urls')
|
||||
class SecurityLoggerTest(TestCase):
|
||||
|
||||
urls = 'logging_tests.urls'
|
||||
|
||||
def test_suspicious_operation_creates_log_message(self):
|
||||
with patch_logger('django.security.SuspiciousOperation', 'error') as calls:
|
||||
self.client.get('/suspicious/')
|
||||
|
||||
Reference in New Issue
Block a user