mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 21:19:42 +02:00
Linting
This commit is contained in:
parent
03afa329c5
commit
1fd86875c0
2 changed files with 3 additions and 6 deletions
|
@ -61,7 +61,7 @@ class TestWithUser(MockEppLib):
|
||||||
)
|
)
|
||||||
title = "test title"
|
title = "test title"
|
||||||
self.user.contact.title = title
|
self.user.contact.title = title
|
||||||
self.user.save()
|
self.user.contact.save()
|
||||||
|
|
||||||
username_incomplete = "test_user_incomplete"
|
username_incomplete = "test_user_incomplete"
|
||||||
first_name_2 = "Incomplete"
|
first_name_2 = "Incomplete"
|
||||||
|
@ -737,7 +737,7 @@ class UserProfileTests(TestWithUser, WebTest):
|
||||||
def test_domain_detail_profile_feature_on(self):
|
def test_domain_detail_profile_feature_on(self):
|
||||||
"""test that domain detail view when profile_feature is on"""
|
"""test that domain detail view when profile_feature is on"""
|
||||||
with override_flag("profile_feature", active=True):
|
with override_flag("profile_feature", active=True):
|
||||||
response = self.client.get(reverse("domain", args=[self.domain.pk]), follow=True)
|
response = self.client.get(reverse("domain", args=[self.domain.pk]))
|
||||||
self.assertContains(response, "Your profile")
|
self.assertContains(response, "Your profile")
|
||||||
self.assertNotContains(response, "Your contact information")
|
self.assertNotContains(response, "Your contact information")
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ from .utility import (
|
||||||
DomainRequestWizardPermissionView,
|
DomainRequestWizardPermissionView,
|
||||||
)
|
)
|
||||||
|
|
||||||
from waffle.decorators import flag_is_active
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -401,9 +400,7 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
def get_step_list(self) -> list:
|
def get_step_list(self) -> list:
|
||||||
"""Dynamically generated list of steps in the form wizard."""
|
"""Dynamically generated list of steps in the form wizard."""
|
||||||
step_list = []
|
step_list = []
|
||||||
excluded_steps = [
|
excluded_steps = [Step.YOUR_CONTACT]
|
||||||
Step.YOUR_CONTACT
|
|
||||||
]
|
|
||||||
should_exclude = flag_is_active(self.request, "profile_feature")
|
should_exclude = flag_is_active(self.request, "profile_feature")
|
||||||
for step in Step:
|
for step in Step:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue