mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 23:16:36 +02:00
lint
This commit is contained in:
parent
bb913a9372
commit
8aeeb3c9e3
2 changed files with 8 additions and 8 deletions
|
@ -411,7 +411,7 @@ class DomainInformationAdminForm(forms.ModelForm):
|
||||||
|
|
||||||
class DomainInformationInlineForm(forms.ModelForm):
|
class DomainInformationInlineForm(forms.ModelForm):
|
||||||
"""This form utilizes the custom widget for its class's ManyToMany UIs."""
|
"""This form utilizes the custom widget for its class's ManyToMany UIs."""
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = models.DomainInformation
|
model = models.DomainInformation
|
||||||
fields = "__all__"
|
fields = "__all__"
|
||||||
|
@ -3804,7 +3804,7 @@ class DomainInformationInline(admin.StackedInline):
|
||||||
form.is_omb_analyst = self.is_omb_analyst
|
form.is_omb_analyst = self.is_omb_analyst
|
||||||
|
|
||||||
return form
|
return form
|
||||||
|
|
||||||
def get_formset(self, request, obj=None, **kwargs):
|
def get_formset(self, request, obj=None, **kwargs):
|
||||||
"""Attach request to the formset so that it can be available in the form"""
|
"""Attach request to the formset so that it can be available in the form"""
|
||||||
formset = super().get_formset(request, obj, **kwargs)
|
formset = super().get_formset(request, obj, **kwargs)
|
||||||
|
|
|
@ -142,9 +142,9 @@ class TestDomainAdminAsStaff(MockEppLib):
|
||||||
self.assertNotContains(response, "id_domain_info-0-senior_official")
|
self.assertNotContains(response, "id_domain_info-0-senior_official")
|
||||||
self.assertNotContains(response, "id_domain_info-0-organization_type")
|
self.assertNotContains(response, "id_domain_info-0-organization_type")
|
||||||
self.assertNotContains(response, "id_domain_info-0-state_territory")
|
self.assertNotContains(response, "id_domain_info-0-state_territory")
|
||||||
self.assertNotContains(response, "id_domain_info-0-address_line1")
|
self.assertNotContains(response, "id_domain_info-0-address_line1")
|
||||||
self.assertNotContains(response, "id_domain_info-0-address_line2")
|
self.assertNotContains(response, "id_domain_info-0-address_line2")
|
||||||
self.assertNotContains(response, "id_domain_info-0-city")
|
self.assertNotContains(response, "id_domain_info-0-city")
|
||||||
self.assertNotContains(response, "id_domain_info-0-zipcode")
|
self.assertNotContains(response, "id_domain_info-0-zipcode")
|
||||||
self.assertNotContains(response, "id_domain_info-0-urbanization")
|
self.assertNotContains(response, "id_domain_info-0-urbanization")
|
||||||
self.assertNotContains(response, "id_domain_info-0-portfolio_organization_type")
|
self.assertNotContains(response, "id_domain_info-0-portfolio_organization_type")
|
||||||
|
@ -166,7 +166,7 @@ class TestDomainAdminAsStaff(MockEppLib):
|
||||||
self.assertNotContains(response, "id_domain_info-0-about_your_organization")
|
self.assertNotContains(response, "id_domain_info-0-about_your_organization")
|
||||||
self.assertNotContains(response, "id_domain_info-0-portfolio")
|
self.assertNotContains(response, "id_domain_info-0-portfolio")
|
||||||
self.assertNotContains(response, "id_domain_info-0-sub_organization")
|
self.assertNotContains(response, "id_domain_info-0-sub_organization")
|
||||||
|
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_superuser_change(self):
|
def test_superuser_change(self):
|
||||||
"""Ensure super user can view/edit all domains."""
|
"""Ensure super user can view/edit all domains."""
|
||||||
|
@ -201,9 +201,9 @@ class TestDomainAdminAsStaff(MockEppLib):
|
||||||
self.assertContains(response, "id_domain_info-0-senior_official")
|
self.assertContains(response, "id_domain_info-0-senior_official")
|
||||||
self.assertContains(response, "id_domain_info-0-organization_type")
|
self.assertContains(response, "id_domain_info-0-organization_type")
|
||||||
self.assertContains(response, "id_domain_info-0-state_territory")
|
self.assertContains(response, "id_domain_info-0-state_territory")
|
||||||
self.assertContains(response, "id_domain_info-0-address_line1")
|
self.assertContains(response, "id_domain_info-0-address_line1")
|
||||||
self.assertContains(response, "id_domain_info-0-address_line2")
|
self.assertContains(response, "id_domain_info-0-address_line2")
|
||||||
self.assertContains(response, "id_domain_info-0-city")
|
self.assertContains(response, "id_domain_info-0-city")
|
||||||
self.assertContains(response, "id_domain_info-0-zipcode")
|
self.assertContains(response, "id_domain_info-0-zipcode")
|
||||||
self.assertContains(response, "id_domain_info-0-urbanization")
|
self.assertContains(response, "id_domain_info-0-urbanization")
|
||||||
self.assertContains(response, "id_domain_info-0-organization_type")
|
self.assertContains(response, "id_domain_info-0-organization_type")
|
||||||
|
@ -215,7 +215,7 @@ class TestDomainAdminAsStaff(MockEppLib):
|
||||||
self.assertContains(response, "id_domain_info-0-about_your_organization")
|
self.assertContains(response, "id_domain_info-0-about_your_organization")
|
||||||
self.assertContains(response, "id_domain_info-0-portfolio")
|
self.assertContains(response, "id_domain_info-0-portfolio")
|
||||||
self.assertContains(response, "id_domain_info-0-sub_organization")
|
self.assertContains(response, "id_domain_info-0-sub_organization")
|
||||||
|
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_staff_can_see_cisa_region_federal(self):
|
def test_staff_can_see_cisa_region_federal(self):
|
||||||
"""Tests if staff can see CISA Region: N/A"""
|
"""Tests if staff can see CISA Region: N/A"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue