mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-18 15:34:16 +02:00
Linting / fix unit test passing in debug
This commit is contained in:
parent
582f35bc07
commit
50ede03476
2 changed files with 4 additions and 7 deletions
|
@ -118,10 +118,7 @@ class Command(BaseCommand):
|
||||||
try:
|
try:
|
||||||
if request.generic_org_type is not None:
|
if request.generic_org_type is not None:
|
||||||
domain_name = None
|
domain_name = None
|
||||||
if (
|
if request.requested_domain is not None and request.requested_domain.name is not None:
|
||||||
request.requested_domain is not None and
|
|
||||||
request.requested_domain.name is not None
|
|
||||||
):
|
|
||||||
domain_name = request.requested_domain.name
|
domain_name = request.requested_domain.name
|
||||||
|
|
||||||
request_is_approved = request.state == DomainRequest.DomainRequestStatus.APPROVED
|
request_is_approved = request.state == DomainRequest.DomainRequestStatus.APPROVED
|
||||||
|
|
|
@ -98,7 +98,7 @@ class TestPopulateOrganizationType(MockEppLib):
|
||||||
"registrar.management.commands.utility.terminal_helper.TerminalHelper.query_yes_no_exit", # noqa
|
"registrar.management.commands.utility.terminal_helper.TerminalHelper.query_yes_no_exit", # noqa
|
||||||
return_value=True,
|
return_value=True,
|
||||||
):
|
):
|
||||||
call_command("populate_organization_type", "registrar/tests/data/fake_election_domains.csv", debug=True)
|
call_command("populate_organization_type", "registrar/tests/data/fake_election_domains.csv")
|
||||||
|
|
||||||
def assert_expected_org_values_on_request_and_info(
|
def assert_expected_org_values_on_request_and_info(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue