@@ -187,7 +187,7 @@ def test_user_info(django_elasticapm_client, client):
187187 assert user_info ["username" ] == ""
188188 assert "email" not in user_info
189189
190- assert client .login (username = "admin" , password = "admin " )
190+ assert client .login (username = "admin" , password = "loger_password_for_admin " )
191191
192192 with pytest .raises (Exception ):
193193 client .get (reverse ("elasticapm-raise-exc" ))
@@ -210,7 +210,7 @@ def test_user_info_raises_database_error(django_elasticapm_client, client):
210210 user .set_password ("longer_password_for_admin" )
211211 user .save ()
212212
213- assert client .login (username = "admin" , password = "admin " )
213+ assert client .login (username = "admin" , password = "loger_password_for_admin " )
214214
215215 with mock .patch ("django.contrib.auth.models.User.is_authenticated" ) as is_authenticated :
216216 is_authenticated .side_effect = DatabaseError ("Test Exception" )
@@ -233,7 +233,7 @@ def test_user_info_with_custom_user(django_elasticapm_client, client):
233233 user = MyUser (my_username = "admin" )
234234 user .set_password ("longer_password_for_admin" )
235235 user .save ()
236- assert client .login (username = "admin" , password = "admin " )
236+ assert client .login (username = "admin" , password = "loger_password_for_admin " )
237237 with pytest .raises (Exception ):
238238 client .get (reverse ("elasticapm-raise-exc" ))
239239
@@ -257,7 +257,7 @@ def test_user_info_with_custom_user_non_string_username(django_elasticapm_client
257257 user = MyIntUser (my_username = 1 )
258258 user .set_password ("longer_password_for_admin" )
259259 user .save ()
260- assert client .login (username = 1 , password = "admin " )
260+ assert client .login (username = "admin" , password = "loger_password_for_admin " )
261261 with pytest .raises (Exception ):
262262 client .get (reverse ("elasticapm-raise-exc" ))
263263
0 commit comments