From 7a6dbef2b2a54948b481085848975a20d8b12962 Mon Sep 17 00:00:00 2001 From: Neil Martinsen-Burrell Date: Tue, 6 Dec 2022 14:48:08 -0600 Subject: [PATCH] Fix linting --- src/registrar/forms/application_wizard.py | 7 ++++++- src/registrar/tests/test_views.py | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/registrar/forms/application_wizard.py b/src/registrar/forms/application_wizard.py index 653108ece..23033780d 100644 --- a/src/registrar/forms/application_wizard.py +++ b/src/registrar/forms/application_wizard.py @@ -4,6 +4,8 @@ from __future__ import annotations # allows forward references in annotations import logging +from typing import Union + from django import forms from django.shortcuts import render @@ -94,7 +96,10 @@ class OrganizationContactForm(RegistrarForm): "Advisory Council on Historic Preservation", "American Battle Monuments Commission", "Appalachian Regional Commission", - "Appraisal Subcommittee of the Federal Financial Institutions Examination Council", + ( + "Appraisal Subcommittee of the Federal Financial " + "Institutions Examination Council" + ), "Armed Forces Retirement Home", "Barry Goldwater Scholarship and Excellence in Education Program", "Central Intelligence Agency", diff --git a/src/registrar/tests/test_views.py b/src/registrar/tests/test_views.py index f38f8f2d6..201f70233 100644 --- a/src/registrar/tests/test_views.py +++ b/src/registrar/tests/test_views.py @@ -397,8 +397,9 @@ class FormTests(TestWithUser, WebTest): # the post request should return a redirect to the contact # question self.assertEquals(election_result.status_code, 302) - self.assertEquals(election_result["Location"], "/register/organization_contact/") + self.assertEquals( + election_result["Location"], "/register/organization_contact/" + ) self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id) contact_page = election_result.follow() self.assertNotContains(contact_page, "Top level federal agency") -