File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,6 @@ async def test_set_auth_valid_token(client: AsyncFunctionsClient):
49
49
assert client .headers ["Authorization" ] == f"Bearer { valid_token } "
50
50
51
51
52
- async def test_set_auth_invalid_token (client : AsyncFunctionsClient ):
53
- invalid_token = "invalid-token"
54
- with pytest .raises (
55
- ValueError , match = "token must be a valid JWT authorization token string."
56
- ):
57
- client .set_auth (invalid_token )
58
-
59
-
60
52
async def test_invoke_success_json (client : AsyncFunctionsClient ):
61
53
mock_response = Mock (spec = Response )
62
54
mock_response .json .return_value = {"message" : "success" }
Original file line number Diff line number Diff line change @@ -49,14 +49,6 @@ def test_set_auth_valid_token(client: SyncFunctionsClient):
49
49
assert client .headers ["Authorization" ] == f"Bearer { valid_token } "
50
50
51
51
52
- def test_set_auth_invalid_token (client : SyncFunctionsClient ):
53
- invalid_token = "invalid-token"
54
- with pytest .raises (
55
- ValueError , match = "token must be a valid JWT authorization token string."
56
- ):
57
- client .set_auth (invalid_token )
58
-
59
-
60
52
def test_invoke_success_json (client : SyncFunctionsClient ):
61
53
mock_response = Mock (spec = Response )
62
54
mock_response .json .return_value = {"message" : "success" }
You can’t perform that action at this time.
0 commit comments