Skip to content

Commit

Permalink
fix deprecated make_random_password
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-muthwill committed Dec 10, 2024
1 parent ee835af commit ca661b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_validate_email_nouser_noerror(self):
def test_validate_email_nouser_error(self):
""" Test validate_email_nouser where error is raised. """
User = get_user_model()
password = User.objects.make_random_password()
password = 'testpassword123'
user = User.objects.create_user(
'john', '[email protected]', password)
user.save()
Expand Down
6 changes: 3 additions & 3 deletions tests/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ def test_subscribe_request_post_existinguser_email(self):
""" Post the subscription form without email shoud fail. """

User = get_user_model()
password = User.objects.make_random_password()
password = 'testpassword123'
user = User.objects.create_user(
'john', '[email protected]', password)
user.save()
Expand Down Expand Up @@ -781,7 +781,7 @@ def test_user_update(self):
"""

User = get_user_model()
password = User.objects.make_random_password()
password = 'testpassword123'
user = User.objects.create_user(
'john', '[email protected]', password)
user.save()
Expand Down Expand Up @@ -1055,7 +1055,7 @@ def test_update_request_post_existinguser_email(self):
""" Post the update form without email shoud fail. """

User = get_user_model()
password = User.objects.make_random_password()
password = 'testpassword123'
user = User.objects.create_user(
'john', '[email protected]', password)
user.save()
Expand Down

0 comments on commit ca661b2

Please sign in to comment.