File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
tests/adapter_tests_async Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments