mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-06 01:35:22 +02:00
cleanup
This commit is contained in:
parent
3bd9a2fbaa
commit
ed5d4fc4c3
1 changed files with 10 additions and 10 deletions
|
@ -156,6 +156,16 @@ class AuditedAdminMockData:
|
|||
APPLICATION = "application"
|
||||
INVITATION = "invitation"
|
||||
|
||||
def dummy_user(self, item_name, short_hand):
|
||||
"""Creates a dummy user object,
|
||||
but with a shorthand and support for multiple"""
|
||||
user = User.objects.get_or_create(
|
||||
first_name="{} first_name:{}".format(item_name, short_hand),
|
||||
last_name="{} last_name:{}".format(item_name, short_hand),
|
||||
username="{} username:{}".format(item_name, str(uuid.uuid4())[:8]),
|
||||
)[0]
|
||||
return user
|
||||
|
||||
def dummy_contact(self, item_name, short_hand):
|
||||
"""Creates a dummy contact object"""
|
||||
contact = Contact.objects.get_or_create(
|
||||
|
@ -167,16 +177,6 @@ class AuditedAdminMockData:
|
|||
)[0]
|
||||
return contact
|
||||
|
||||
def dummy_user(self, item_name, short_hand):
|
||||
"""Creates a dummy user object,
|
||||
but with a shorthand and support for multiple"""
|
||||
user = User.objects.get_or_create(
|
||||
first_name="{} first_name:{}".format(item_name, short_hand),
|
||||
last_name="{} last_name:{}".format(item_name, short_hand),
|
||||
username="{} username:{}".format(item_name, str(uuid.uuid4())[:8]),
|
||||
)[0]
|
||||
return user
|
||||
|
||||
def dummy_draft_domain(self, item_name, prebuilt=False):
|
||||
"""
|
||||
Creates a dummy DraftDomain object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue