From ee6e4fae92c81f23085677f238dc8dbd2d560097 Mon Sep 17 00:00:00 2001 From: Andrew Miller Date: Wed, 19 Jun 2024 21:34:36 +0100 Subject: [PATCH] more linting --- tests/messages_tests/test_message.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/messages_tests/test_message.py b/tests/messages_tests/test_message.py index beb548db7e..28224a2acf 100644 --- a/tests/messages_tests/test_message.py +++ b/tests/messages_tests/test_message.py @@ -1,8 +1,5 @@ from django.contrib.messages import constants, restrictions -from django.contrib.messages.restrictions import ( - AmountRestriction, - TimeRestriction, -) +from django.contrib.messages.restrictions import AmountRestriction, TimeRestriction from django.contrib.messages.storage.base import Message from django.test import TestCase @@ -77,6 +74,7 @@ class MessageTest(TestCase): AmountRestriction(2), AmountRestriction(3), ] + def get_msg(): return Message( constants.INFO, "Test message", restrictions=get_restrictions()