This commit is contained in:
zandercymatics 2024-05-23 09:33:34 -06:00
parent 03afa329c5
commit 1fd86875c0
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 3 additions and 6 deletions

View file

@ -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")

View file

@ -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: