From 443f67baa1bf3c195e51b912ca20fab5c5fd427b Mon Sep 17 00:00:00 2001 From: raffaella Date: Thu, 1 Feb 2024 18:15:47 +0100 Subject: [PATCH] fix ruff rule C408 --- tests/test_templatetags.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/test_templatetags.py b/tests/test_templatetags.py index 7e8d0d08..0575b48b 100644 --- a/tests/test_templatetags.py +++ b/tests/test_templatetags.py @@ -16,7 +16,7 @@ def test_current_site_name(self): current_site_name, ) - site_name = current_site_name(dict()) + site_name = current_site_name({}) self.assertEqual(site_name, "example.com") # Default name with self.modify_settings( @@ -26,7 +26,7 @@ def test_current_site_name(self): ], } ): - site_name = current_site_name(dict()) + site_name = current_site_name({}) self.assertEqual(site_name, "my site") # Generic name def test_render_update_notification(self): @@ -34,14 +34,12 @@ def test_render_update_notification(self): render_update_notification, ) - self.assertEqual( - render_update_notification(dict()), "" - ) # No update notification + self.assertEqual(render_update_notification({}), "") # No update notification request = self.request_factory.get("/") request.resolver_match = Object() request.resolver_match.url_name = "index" self.assertIn( f'', - render_update_notification(dict(request=request)), + render_update_notification({"request": request}), )