mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
Merge pull request #828 from GSA/800-flask-command-for-test
800 flask command for test
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user