mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
ran app black
This commit is contained in:
parent
f14122da6a
commit
a8808e5356
1 changed files with 7 additions and 8 deletions
|
@ -655,16 +655,15 @@ class TestDomainDetailDomainRenewal(TestDomainOverview):
|
||||||
# Click the check, and submit
|
# Click the check, and submit
|
||||||
response = self.client.post(renewal_url, data={"is_policy_acknowledged": "on", "submit_button": "next"})
|
response = self.client.post(renewal_url, data={"is_policy_acknowledged": "on", "submit_button": "next"})
|
||||||
|
|
||||||
#Check that it redirects after a successfully submits
|
# Check that it redirects after a successfully submits
|
||||||
self.assertRedirects(response, reverse("domain", kwargs={"pk":self.domain_with_ip.id}))
|
self.assertRedirects(response, reverse("domain", kwargs={"pk": self.domain_with_ip.id}))
|
||||||
|
|
||||||
#Check for the updated expiration
|
# Check for the updated expiration
|
||||||
formatted_new_expiration_date = self.todays_expiration_date().strftime("%b. %-d, %Y")
|
formatted_new_expiration_date = self.todays_expiration_date().strftime("%b. %-d, %Y")
|
||||||
redirect_response = self.client.get(reverse("domain", kwargs={"pk":self.domain_with_ip.id}), follow=True)
|
redirect_response = self.client.get(reverse("domain", kwargs={"pk": self.domain_with_ip.id}), follow=True)
|
||||||
self.assertContains(redirect_response, formatted_new_expiration_date)
|
self.assertContains(redirect_response, formatted_new_expiration_date)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class TestDomainManagers(TestDomainOverview):
|
class TestDomainManagers(TestDomainOverview):
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue