mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-29 17:00:02 +02:00
reformatted test file
This commit is contained in:
parent
f3159b57e4
commit
6be34e0677
1 changed files with 5 additions and 3 deletions
|
@ -737,12 +737,12 @@ class TestDomainManagers(TestDomainOverview):
|
||||||
def test_domain_invitation_flow(self):
|
def test_domain_invitation_flow(self):
|
||||||
"""Send an invitation to a new user, log in and load the dashboard."""
|
"""Send an invitation to a new user, log in and load the dashboard."""
|
||||||
email_address = "mayor@igorville.gov"
|
email_address = "mayor@igorville.gov"
|
||||||
username="mayor"
|
username = "mayor"
|
||||||
first_name = "First"
|
first_name = "First"
|
||||||
last_name = "Last"
|
last_name = "Last"
|
||||||
title = "title"
|
title = "title"
|
||||||
phone = "8080102431"
|
phone = "8080102431"
|
||||||
title="title"
|
title = "title"
|
||||||
User.objects.filter(email=email_address).delete()
|
User.objects.filter(email=email_address).delete()
|
||||||
|
|
||||||
add_page = self.app.get(reverse("domain-users-add", kwargs={"pk": self.domain.id}))
|
add_page = self.app.get(reverse("domain-users-add", kwargs={"pk": self.domain.id}))
|
||||||
|
@ -758,7 +758,9 @@ class TestDomainManagers(TestDomainOverview):
|
||||||
add_page.form.submit()
|
add_page.form.submit()
|
||||||
|
|
||||||
# user was invited, create them
|
# user was invited, create them
|
||||||
new_user = User.objects.create(username=username, email=email_address, first_name=first_name, last_name=last_name, title=title, phone=phone)
|
new_user = User.objects.create(
|
||||||
|
username=username, email=email_address, first_name=first_name, last_name=last_name, title=title, phone=phone
|
||||||
|
)
|
||||||
# log them in to `self.app`
|
# log them in to `self.app`
|
||||||
self.app.set_user(new_user.username)
|
self.app.set_user(new_user.username)
|
||||||
# and manually call the on each login callback
|
# and manually call the on each login callback
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue