mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
flake8
This commit is contained in:
@@ -30,7 +30,7 @@ def _get_access_token(code, state):
|
|||||||
client_id = os.getenv("LOGIN_DOT_GOV_CLIENT_ID")
|
client_id = os.getenv("LOGIN_DOT_GOV_CLIENT_ID")
|
||||||
access_token_url = os.getenv("LOGIN_DOT_GOV_ACCESS_TOKEN_URL")
|
access_token_url = os.getenv("LOGIN_DOT_GOV_ACCESS_TOKEN_URL")
|
||||||
keystring = os.getenv("LOGIN_PEM")
|
keystring = os.getenv("LOGIN_PEM")
|
||||||
print(hilite(f"LOGIN_PEM: START{keystring}FINISH"))
|
print(hilite(f"LOGIN_PEM: START{keystring}FINISH")) # noqa temp
|
||||||
payload = {
|
payload = {
|
||||||
"iss": client_id,
|
"iss": client_id,
|
||||||
"sub": client_id,
|
"sub": client_id,
|
||||||
@@ -175,7 +175,7 @@ def sign_in():
|
|||||||
current_app.logger.info(
|
current_app.logger.info(
|
||||||
f"LOGIN_DOT_GOV_SIGNOUT_REDIRECT={os.getenv('LOGIN_DOT_GOV_SIGNOUT_REDIRECT')}"
|
f"LOGIN_DOT_GOV_SIGNOUT_REDIRECT={os.getenv('LOGIN_DOT_GOV_SIGNOUT_REDIRECT')}"
|
||||||
)
|
)
|
||||||
initial_signin_url = os.getenv('LOGIN_DOT_GOV_INITIAL_SIGNIN_URL')
|
initial_signin_url = os.getenv("LOGIN_DOT_GOV_INITIAL_SIGNIN_URL")
|
||||||
current_app.logger.info(f"LOGIN_DOT_GOV_INITIAL_SIGNIN_URL={initial_signin_url}")
|
current_app.logger.info(f"LOGIN_DOT_GOV_INITIAL_SIGNIN_URL={initial_signin_url}")
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
|
|||||||
@@ -15,7 +15,9 @@ def test_non_logged_in_user_can_see_homepage(
|
|||||||
client_request.logout()
|
client_request.logout()
|
||||||
page = client_request.get("main.index", _test_page_title=False)
|
page = client_request.get("main.index", _test_page_title=False)
|
||||||
|
|
||||||
assert page.h1.text.strip() == ("Reach people where they are with government-powered text messages")
|
assert page.h1.text.strip() == (
|
||||||
|
"Reach people where they are with government-powered text messages"
|
||||||
|
)
|
||||||
|
|
||||||
assert page.select_one("a.usa-button.usa-button--big")["href"] == url_for(
|
assert page.select_one("a.usa-button.usa-button--big")["href"] == url_for(
|
||||||
"main.sign_in",
|
"main.sign_in",
|
||||||
|
|||||||
@@ -632,7 +632,7 @@ def test_should_show_sms_template_with_downgraded_unicode_characters(
|
|||||||
fake_uuid,
|
fake_uuid,
|
||||||
):
|
):
|
||||||
msg = "here:\tare some “fancy quotes” and zero\u200Bwidth\u200Bspaces"
|
msg = "here:\tare some “fancy quotes” and zero\u200Bwidth\u200Bspaces"
|
||||||
rendered_msg = 'here: are some “fancy quotes” and zerowidthspaces'
|
rendered_msg = "here: are some “fancy quotes” and zerowidthspaces"
|
||||||
|
|
||||||
mocker.patch(
|
mocker.patch(
|
||||||
"app.service_api_client.get_service_template",
|
"app.service_api_client.get_service_template",
|
||||||
|
|||||||
Reference in New Issue
Block a user