mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
more linting
This commit is contained in:
parent
c138cacc2b
commit
ee6e4fae92
@ -1,8 +1,5 @@
|
|||||||
from django.contrib.messages import constants, restrictions
|
from django.contrib.messages import constants, restrictions
|
||||||
from django.contrib.messages.restrictions import (
|
from django.contrib.messages.restrictions import AmountRestriction, TimeRestriction
|
||||||
AmountRestriction,
|
|
||||||
TimeRestriction,
|
|
||||||
)
|
|
||||||
from django.contrib.messages.storage.base import Message
|
from django.contrib.messages.storage.base import Message
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
|
|
||||||
@ -77,6 +74,7 @@ class MessageTest(TestCase):
|
|||||||
AmountRestriction(2),
|
AmountRestriction(2),
|
||||||
AmountRestriction(3),
|
AmountRestriction(3),
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_msg():
|
def get_msg():
|
||||||
return Message(
|
return Message(
|
||||||
constants.INFO, "Test message", restrictions=get_restrictions()
|
constants.INFO, "Test message", restrictions=get_restrictions()
|
||||||
|
Loading…
Reference in New Issue
Block a user