From 073ff94c3ba4214ba22dc449da0dacf438ac6300 Mon Sep 17 00:00:00 2001 From: CocoByte Date: Wed, 14 Aug 2024 12:13:48 -0600 Subject: [PATCH] fixing tests - thanks for the help Rachid! --- src/registrar/views/domain_request.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/registrar/views/domain_request.py b/src/registrar/views/domain_request.py index c8f81dcaa..b691549cd 100644 --- a/src/registrar/views/domain_request.py +++ b/src/registrar/views/domain_request.py @@ -218,10 +218,6 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView): del self.storage self.storage["domain_request_id"] = kwargs["id"] - # refresh step_history to ensure we don't erroneously unlock unfinished - # steps just because we visited it - self.storage["step_history"] = self.db_check_for_unlocking_steps() - # if accessing this class directly, redirect to either to an acknowledgement # page or to the first step in the processes (if an edit rather than a new request); # subclasseswill NOT be redirected. The purpose of this is to allow code to @@ -236,6 +232,9 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView): else: return self.goto(self.steps.first) + # refresh step_history to ensure we don't erroneously unlock unfinished + # steps just because we visited it + self.storage["step_history"] = self.db_check_for_unlocking_steps() context = self.get_context_data() self.steps.current = current_url context["forms"] = self.get_forms()