Skip to content

Commit 68e9c25

Browse files
committed
Tweak test code
1 parent d493319 commit 68e9c25

File tree

13 files changed

+2
-17
lines changed

13 files changed

+2
-17
lines changed

tests/adapter_tests/test_aws_chalice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,4 +275,4 @@ def install() -> Response:
275275
assert response["statusCode"] == 200
276276
assert response["headers"]["content-type"] == "text/html; charset=utf-8"
277277
assert response["headers"]["content-length"] == "565"
278-
assert response.get("body") is not None
278+
assert "https://slack.com/oauth/v2/authorize?state=" in response.get("body")

tests/adapter_tests/test_aws_lambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,4 +299,4 @@ def test_oauth(self):
299299
assert response["statusCode"] == 200
300300
assert response["headers"]["content-type"] == "text/html; charset=utf-8"
301301
assert response["headers"]["content-length"] == "565"
302-
assert response.get("body") is not None
302+
assert "https://slack.com/oauth/v2/authorize?state=" in response.get("body")

tests/adapter_tests/test_bottle_oauth.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import re
2-
31
from slack_bolt.adapter.bottle import SlackRequestHandler
42
from slack_bolt.app import App
53
from slack_bolt.oauth.oauth_settings import OAuthSettings

tests/adapter_tests/test_falcon.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import re
32
from time import time
43
from urllib.parse import quote
54

tests/adapter_tests/test_fastapi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import re
32
from time import time
43
from urllib.parse import quote
54

tests/adapter_tests/test_starlette.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import re
32
from time import time
43
from urllib.parse import quote
54

tests/adapter_tests_async/test_async_fastapi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import re
32
from time import time
43
from urllib.parse import quote
54

tests/adapter_tests_async/test_async_sanic.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import asyncio
22
import json
3-
import re
43
from time import time
54
from urllib.parse import quote
65

@@ -200,7 +199,6 @@ async def endpoint(req: Request):
200199
url="/slack/install", allow_redirects=False
201200
)
202201
assert response.status_code == 200
203-
assert response.status_code == 200
204202
assert response.headers.get("content-type") == "text/html; charset=utf-8"
205203
assert response.headers.get("content-length") == "565"
206204
assert "https://slack.com/oauth/v2/authorize?state=" in response.text

tests/adapter_tests_async/test_async_starlette.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import re
32
from time import time
43
from urllib.parse import quote
54

@@ -203,7 +202,6 @@ async def endpoint(req: Request):
203202
client = TestClient(api)
204203
response = client.get("/slack/install", allow_redirects=False)
205204
assert response.status_code == 200
206-
assert response.status_code == 200
207205
assert response.headers.get("content-type") == "text/html; charset=utf-8"
208206
assert response.headers.get("content-length") == "565"
209207
assert "https://slack.com/oauth/v2/authorize?state=" in response.text

tests/slack_bolt/oauth/test_oauth_flow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import re
32
from time import time
43
from urllib.parse import quote
54

0 commit comments

Comments
 (0)