From e4e88e01a357bb0f4fc9254ea58f46d6f485c50a Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Mon, 21 Feb 2022 22:07:41 +0100 Subject: [PATCH] Fix #845 -- Rename test functions --- tests/test_helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_helpers.py b/tests/test_helpers.py index 05b4c0f..e17937c 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -248,7 +248,7 @@ class ClientStringTestCase(AxesTestCase): @override_settings( AXES_CLIENT_STR_CALLABLE="tests.test_helpers.get_dummy_client_str" ) - def test_get_client_str_callable(self): + def test_get_client_str_callable_return_str(self): self.assertEqual( get_client_str( "username", "ip_address", "user_agent", "path_info", self.request @@ -259,7 +259,7 @@ class ClientStringTestCase(AxesTestCase): @override_settings( AXES_CLIENT_STR_CALLABLE="tests.test_helpers.get_dummy_client_str_using_request" ) - def test_get_client_str_callable(self): + def test_get_client_str_callable_using_request(self): self.request.user = self.user self.assertEqual( get_client_str( @@ -269,7 +269,7 @@ class ClientStringTestCase(AxesTestCase): ) -def get_dummy_client_str(username, ip_address, user_agent, path_info): +def get_dummy_client_str(username, ip_address, user_agent, path_info, request): return "client string"