mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #33476 -- Reformatted code with Black.
This commit is contained in:
parent
f68fa8b45d
commit
9c19aff7c7
1992 changed files with 139577 additions and 96284 deletions
|
@ -8,9 +8,9 @@ from django.test import SimpleTestCase, override_settings
|
|||
|
||||
class MessageTests(SimpleTestCase):
|
||||
def test_eq(self):
|
||||
msg_1 = Message(constants.INFO, 'Test message 1')
|
||||
msg_2 = Message(constants.INFO, 'Test message 2')
|
||||
msg_3 = Message(constants.WARNING, 'Test message 1')
|
||||
msg_1 = Message(constants.INFO, "Test message 1")
|
||||
msg_2 = Message(constants.INFO, "Test message 2")
|
||||
msg_3 = Message(constants.WARNING, "Test message 1")
|
||||
self.assertEqual(msg_1, msg_1)
|
||||
self.assertEqual(msg_1, mock.ANY)
|
||||
self.assertNotEqual(msg_1, msg_2)
|
||||
|
@ -20,12 +20,12 @@ class MessageTests(SimpleTestCase):
|
|||
|
||||
class TestLevelTags(SimpleTestCase):
|
||||
message_tags = {
|
||||
constants.INFO: 'info',
|
||||
constants.DEBUG: '',
|
||||
constants.WARNING: '',
|
||||
constants.ERROR: 'bad',
|
||||
constants.SUCCESS: '',
|
||||
12: 'custom',
|
||||
constants.INFO: "info",
|
||||
constants.DEBUG: "",
|
||||
constants.WARNING: "",
|
||||
constants.ERROR: "bad",
|
||||
constants.SUCCESS: "",
|
||||
12: "custom",
|
||||
}
|
||||
|
||||
@override_settings(MESSAGE_TAGS=message_tags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue