Merge pull request #828 from GSA/800-flask-command-for-test

800 flask command for test
This commit is contained in:
Carlo Costino
2024-03-05 11:58:00 -05:00
committed by GitHub
6 changed files with 271 additions and 83 deletions

View File

@@ -83,7 +83,7 @@ def create_user(
data = {
"id": id_ or uuid.uuid4(),
"name": name,
"email_address": email or f"{uuid.uuid4()}@digital.cabinet-office.gov.uk",
"email_address": email or f"{uuid.uuid4()}@test.gsa.gov",
"password": "password",
"mobile_number": mobile_number,
"state": state,
@@ -141,7 +141,7 @@ def create_service(
else service_name.lower().replace(" ", "."),
created_by=user
if user
else create_user(email=f"{uuid.uuid4()}@digital.cabinet-office.gov.uk"),
else create_user(email="{}@test.gsa.gov".format(uuid.uuid4())),
prefix_sms=prefix_sms,
organization_type=organization_type,
organization=organization,