From 32630cfce9aa0862a314ec0b5283860fa033f740 Mon Sep 17 00:00:00 2001 From: Paulo Rosado Date: Mon, 10 Jun 2024 16:13:51 -0300 Subject: [PATCH] fixing e2e tests --- test_initiate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_initiate.py b/test_initiate.py index 3081f72..18d9de5 100644 --- a/test_initiate.py +++ b/test_initiate.py @@ -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()