mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
Added commands to add test data to DB
Updated old .uk strings in db.py
This commit is contained in:
@@ -75,7 +75,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,
|
||||
@@ -133,9 +133,7 @@ def create_service(
|
||||
else service_name.lower().replace(" ", "."),
|
||||
created_by=user
|
||||
if user
|
||||
else create_user(
|
||||
email="{}@digital.cabinet-office.gov.uk".format(uuid.uuid4())
|
||||
),
|
||||
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