mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 00:42:16 +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"
|
||||
self.user.contact.title = title
|
||||
self.user.save()
|
||||
self.user.contact.save()
|
||||
|
||||
username_incomplete = "test_user_incomplete"
|
||||
first_name_2 = "Incomplete"
|
||||
|
@ -737,7 +737,7 @@ class UserProfileTests(TestWithUser, WebTest):
|
|||
def test_domain_detail_profile_feature_on(self):
|
||||
"""test that domain detail view when profile_feature is on"""
|
||||
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.assertNotContains(response, "Your contact information")
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ from .utility import (
|
|||
DomainRequestWizardPermissionView,
|
||||
)
|
||||
|
||||
from waffle.decorators import flag_is_active
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -401,9 +400,7 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
|||
def get_step_list(self) -> list:
|
||||
"""Dynamically generated list of steps in the form wizard."""
|
||||
step_list = []
|
||||
excluded_steps = [
|
||||
Step.YOUR_CONTACT
|
||||
]
|
||||
excluded_steps = [Step.YOUR_CONTACT]
|
||||
should_exclude = flag_is_active(self.request, "profile_feature")
|
||||
for step in Step:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue