mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 04:58:42 +02:00
Linting and tests
This commit is contained in:
parent
dc032e5222
commit
25a3ed44f7
3 changed files with 2 additions and 3 deletions
|
@ -174,7 +174,7 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="usa-modal"
|
class="usa-modal usa-modal--lg"
|
||||||
id="toggle-delete-domain-alert-{{ forloop.counter }}"
|
id="toggle-delete-domain-alert-{{ forloop.counter }}"
|
||||||
aria-labelledby="Are you sure you want to continue?"
|
aria-labelledby="Are you sure you want to continue?"
|
||||||
aria-describedby="User will be removed"
|
aria-describedby="User will be removed"
|
||||||
|
|
|
@ -95,7 +95,7 @@ class LoggedInTests(TestWithUser):
|
||||||
application = DomainApplication.objects.create(creator=self.user, requested_domain=site)
|
application = DomainApplication.objects.create(creator=self.user, requested_domain=site)
|
||||||
response = self.client.get("/")
|
response = self.client.get("/")
|
||||||
|
|
||||||
# count = 4 because pf screenreader content
|
# count = 5 because of screenreader content
|
||||||
self.assertContains(response, "igorville.gov", count=4)
|
self.assertContains(response, "igorville.gov", count=4)
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
|
|
|
@ -49,7 +49,6 @@ def _get_applications(request):
|
||||||
valid_statuses = [DomainApplication.ApplicationStatus.STARTED, DomainApplication.ApplicationStatus.WITHDRAWN]
|
valid_statuses = [DomainApplication.ApplicationStatus.STARTED, DomainApplication.ApplicationStatus.WITHDRAWN]
|
||||||
deletable_applications = applications.filter(status__in=valid_statuses)
|
deletable_applications = applications.filter(status__in=valid_statuses)
|
||||||
|
|
||||||
|
|
||||||
return (applications, deletable_applications)
|
return (applications, deletable_applications)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue