Added commands to add test data to DB

Updated old .uk strings in db.py
This commit is contained in:
Anastasia Gradova
2024-03-01 12:13:29 -07:00
parent 158316a77b
commit 08fe6beff7
2 changed files with 156 additions and 4 deletions

View File

@@ -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,