mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 12:38:36 +02:00
remove test code and lint
This commit is contained in:
parent
0478d2bee6
commit
4dba0a31c3
2 changed files with 2 additions and 3 deletions
|
@ -244,7 +244,6 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
is called in the validate function on the request/domain page
|
is called in the validate function on the request/domain page
|
||||||
|
|
||||||
throws- RegistryError or InvalidDomainError"""
|
throws- RegistryError or InvalidDomainError"""
|
||||||
return True
|
|
||||||
if not cls.string_could_be_domain(domain):
|
if not cls.string_could_be_domain(domain):
|
||||||
logger.warning("Not a valid domain: %s" % str(domain))
|
logger.warning("Not a valid domain: %s" % str(domain))
|
||||||
# throw invalid domain error so that it can be caught in
|
# throw invalid domain error so that it can be caught in
|
||||||
|
|
|
@ -423,11 +423,11 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
"""Helper for get_context_data.
|
"""Helper for get_context_data.
|
||||||
Queries the DB for a domain request and returns a list of unlocked steps."""
|
Queries the DB for a domain request and returns a list of unlocked steps."""
|
||||||
return [key for key, is_unlocked_checker in self.unlocking_steps.items() if is_unlocked_checker(self)]
|
return [key for key, is_unlocked_checker in self.unlocking_steps.items() if is_unlocked_checker(self)]
|
||||||
|
|
||||||
def form_is_complete(self):
|
def form_is_complete(self):
|
||||||
"""
|
"""
|
||||||
Determines if all required steps in the domain request form are complete.
|
Determines if all required steps in the domain request form are complete.
|
||||||
|
|
||||||
This method:
|
This method:
|
||||||
1. Gets a list of all steps that have been completed (unlocked_steps)
|
1. Gets a list of all steps that have been completed (unlocked_steps)
|
||||||
2. Filters the full step list to only include steps that should be shown based on
|
2. Filters the full step list to only include steps that should be shown based on
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue