Merge pull request #580 from GSA/notify-api-553

notify-api-533 add flask command to promote user to platform admin
This commit is contained in:
Carlo Costino
2023-11-07 12:53:41 -05:00
committed by GitHub
5 changed files with 54 additions and 7 deletions

View File

@@ -70,6 +70,7 @@ def create_user(
state="active",
id_=None,
name="Test User",
platform_admin=False,
):
data = {
"id": id_ or uuid.uuid4(),
@@ -78,6 +79,7 @@ def create_user(
"password": "password",
"mobile_number": mobile_number,
"state": state,
"platform_admin": platform_admin,
}
user = User.query.filter_by(email_address=email).first()
if not user: