Skip to content

Commit 56d5ca3

Browse files
authored
Fix double quoted img alt text for the "Add to Slack" button (#1170)
1 parent 35842a5 commit 56d5ca3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

slack_bolt/oauth/internals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def _build_default_install_page_html(url: str) -> str:
8585
</head>
8686
<body>
8787
<h2>Slack App Installation</h2>
88-
<p><a href="{html.escape(url)}"><img alt=""Add to Slack"" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/[email protected] 2x" /></a></p>
88+
<p><a href="{html.escape(url)}"><img alt="Add to Slack" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/[email protected] 2x" /></a></p>
8989
</body>
9090
</html>
9191
""" # noqa: E501

tests/adapter_tests_async/test_async_falcon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,5 +201,5 @@ def test_oauth(self):
201201
response = client.simulate_get("/slack/install")
202202
assert response.status_code == 200
203203
assert response.headers.get("content-type") == "text/html; charset=utf-8"
204-
assert response.headers.get("content-length") == "609"
204+
assert response.headers.get("content-length") == "607"
205205
assert "https://slack.com/oauth/v2/authorize?state=" in response.text

tests/adapter_tests_async/test_async_fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ async def endpoint(req: Request):
209209
response = client.get("/slack/install", allow_redirects=False)
210210
assert response.status_code == 200
211211
assert response.headers.get("content-type") == "text/html; charset=utf-8"
212-
assert response.headers.get("content-length") == "609"
212+
assert response.headers.get("content-length") == "607"
213213
assert "https://slack.com/oauth/v2/authorize?state=" in response.text
214214

215215
def test_custom_props(self):

tests/adapter_tests_async/test_async_sanic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,6 @@ async def endpoint(req: Request):
221221

222222
# NOTE: Although sanic-testing 0.6 does not have this value,
223223
# Sanic apps properly generate the content-length header
224-
# assert response.headers.get("content-length") == "609"
224+
# assert response.headers.get("content-length") == "607"
225225

226226
assert "https://slack.com/oauth/v2/authorize?state=" in response.text

tests/adapter_tests_async/test_async_starlette.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,5 +219,5 @@ async def endpoint(req: Request):
219219
response = client.get("/slack/install", allow_redirects=False)
220220
assert response.status_code == 200
221221
assert response.headers.get("content-type") == "text/html; charset=utf-8"
222-
assert response.headers.get("content-length") == "609"
222+
assert response.headers.get("content-length") == "607"
223223
assert "https://slack.com/oauth/v2/authorize?state=" in response.text

0 commit comments

Comments
 (0)