Skip to content

Commit

Permalink
fixing e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulorosadodev committed Jun 10, 2024
1 parent f360d63 commit 32630cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_initiate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
Users.objects.all().delete()
print("Todos os usuários foram deletados.")

def create_admin(username, email, password):
def create_admin(username, first_name, email, password):
if not Users.objects.filter(username=username).exists():
user = Users.objects.create_user(username=username, email=email, password=password, role='A')
user = Users.objects.create_user(username=username, first_name=first_name, email=email, password=password, role='A')
user.save()


Expand Down

0 comments on commit 32630cf

Please sign in to comment.