Skip to content

Commit

Permalink
fixup! prepare test_user
Browse files Browse the repository at this point in the history
  • Loading branch information
Kakadus committed Jan 20, 2025
1 parent 9d5bdb7 commit 0aac188
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions evap/evaluation/tests/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,10 @@ class LiveServerTest(SeleniumTestCase):

def _create_test_user(self):
"""Create a default test user."""
test_user = baker.make(
test_user = baker.prepare(
UserProfile, email="evap@institution.example.com", groups=[Group.objects.get(name="Manager")]
)
test_user_password = "evap" # nosec
test_user.set_password(test_user_password)
test_user.set_password("evap")
test_user.save()
return test_user

Expand Down

0 comments on commit 0aac188

Please sign in to comment.