Skip to content

Commit dd461ed

Browse files
committed
test: remove invalid token tests
1 parent b5b2323 commit dd461ed

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

tests/_async/test_function_client.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ async def test_set_auth_valid_token(client: AsyncFunctionsClient):
4949
assert client.headers["Authorization"] == f"Bearer {valid_token}"
5050

5151

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-
6052
async def test_invoke_success_json(client: AsyncFunctionsClient):
6153
mock_response = Mock(spec=Response)
6254
mock_response.json.return_value = {"message": "success"}

tests/_sync/test_function_client.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ def test_set_auth_valid_token(client: SyncFunctionsClient):
4949
assert client.headers["Authorization"] == f"Bearer {valid_token}"
5050

5151

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-
6052
def test_invoke_success_json(client: SyncFunctionsClient):
6153
mock_response = Mock(spec=Response)
6254
mock_response.json.return_value = {"message": "success"}

0 commit comments

Comments
 (0)