mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 04:59:59 +02:00
Cleanup
This commit is contained in:
parent
4ae764bf0b
commit
8660e6ba89
2 changed files with 4 additions and 6 deletions
|
@ -1645,7 +1645,7 @@ class TestRequestingEntity(WebTest):
|
||||||
def test_requesting_entity_page_new_request(self):
|
def test_requesting_entity_page_new_request(self):
|
||||||
"""Tests that the requesting entity page loads correctly when a new request is started"""
|
"""Tests that the requesting entity page loads correctly when a new request is started"""
|
||||||
|
|
||||||
response = self.app.get(reverse("domain-request:"))
|
response = self.app.get(reverse("domain-request:start"))
|
||||||
|
|
||||||
# Navigate past the intro page
|
# Navigate past the intro page
|
||||||
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
||||||
|
@ -1672,7 +1672,7 @@ class TestRequestingEntity(WebTest):
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_requesting_entity_page_existing_suborg_submission(self):
|
def test_requesting_entity_page_existing_suborg_submission(self):
|
||||||
"""Tests that you can submit a form on this page and set a suborg"""
|
"""Tests that you can submit a form on this page and set a suborg"""
|
||||||
response = self.app.get(reverse("domain-request:"))
|
response = self.app.get(reverse("domain-request:start"))
|
||||||
|
|
||||||
# Navigate past the intro page
|
# Navigate past the intro page
|
||||||
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
||||||
|
@ -1705,7 +1705,7 @@ class TestRequestingEntity(WebTest):
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_requesting_entity_page_new_suborg_submission(self):
|
def test_requesting_entity_page_new_suborg_submission(self):
|
||||||
"""Tests that you can submit a form on this page and set a new suborg"""
|
"""Tests that you can submit a form on this page and set a new suborg"""
|
||||||
response = self.app.get(reverse("domain-request:"))
|
response = self.app.get(reverse("domain-request:start"))
|
||||||
|
|
||||||
# Navigate past the intro page
|
# Navigate past the intro page
|
||||||
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
||||||
|
@ -1745,7 +1745,7 @@ class TestRequestingEntity(WebTest):
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_requesting_entity_page_organization_submission(self):
|
def test_requesting_entity_page_organization_submission(self):
|
||||||
"""Tests submitting an organization on the requesting org form"""
|
"""Tests submitting an organization on the requesting org form"""
|
||||||
response = self.app.get(reverse("domain-request:"))
|
response = self.app.get(reverse("domain-request:start"))
|
||||||
|
|
||||||
# Navigate past the intro page
|
# Navigate past the intro page
|
||||||
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
||||||
|
|
|
@ -158,7 +158,6 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
# Configure titles, wizard_conditions, unlocking_steps, and steps
|
# Configure titles, wizard_conditions, unlocking_steps, and steps
|
||||||
self.configure_step_options()
|
self.configure_step_options()
|
||||||
self._domain_request = None # for caching
|
self._domain_request = None # for caching
|
||||||
self.domain_request_id = None
|
|
||||||
|
|
||||||
def configure_step_options(self):
|
def configure_step_options(self):
|
||||||
"""Changes which steps are available to the user based on self.is_portfolio.
|
"""Changes which steps are available to the user based on self.is_portfolio.
|
||||||
|
@ -183,7 +182,6 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
|
|
||||||
def has_pk(self):
|
def has_pk(self):
|
||||||
"""Does this wizard know about a DomainRequest database record?"""
|
"""Does this wizard know about a DomainRequest database record?"""
|
||||||
|
|
||||||
return self.kwargs.get("id") is not None
|
return self.kwargs.get("id") is not None
|
||||||
|
|
||||||
def get_step_enum(self):
|
def get_step_enum(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue