Skip to content

Commit c39eace

Browse files
chore: copilot minor doc & style suggestions
1 parent 3ac5601 commit c39eace

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

tests/functional/test_invalid_oauth.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def test_invalid_secret(athena_options: AthenaOptions) -> None:
4141
async def test_invalid_clientid(athena_options: AthenaOptions) -> None:
4242
"""Test that an invalid OAuth client secret is rejected."""
4343
load_dotenv()
44-
invalid_client_secret = os.environ["OAUTH_CLIENT_SECRET"]
44+
client_secret = os.environ["OAUTH_CLIENT_SECRET"]
4545
client_id = "this_is_not_a_valid_client_id"
4646
auth_url = os.getenv(
4747
"OAUTH_AUTH_URL", "https://crispthinking.auth0.com/oauth/token"
@@ -50,7 +50,7 @@ async def test_invalid_clientid(athena_options: AthenaOptions) -> None:
5050

5151
credential_helper = CredentialHelper(
5252
client_id=client_id,
53-
client_secret=invalid_client_secret,
53+
client_secret=client_secret,
5454
auth_url=auth_url,
5555
audience=audience,
5656
)
@@ -64,9 +64,9 @@ async def test_invalid_clientid(athena_options: AthenaOptions) -> None:
6464
@pytest.mark.asyncio
6565
@pytest.mark.functional
6666
async def test_invalid_audience(athena_options: AthenaOptions) -> None:
67-
"""Test that an invalid OAuth client secret is rejected."""
67+
"""Test that an invalid OAuth audience is rejected."""
6868
load_dotenv()
69-
invalid_client_secret = os.environ["OAUTH_CLIENT_SECRET"]
69+
client_secret = os.environ["OAUTH_CLIENT_SECRET"]
7070
client_id = "this_is_not_a_valid_client_id"
7171
auth_url = os.getenv(
7272
"OAUTH_AUTH_URL", "https://crispthinking.auth0.com/oauth/token"
@@ -75,7 +75,7 @@ async def test_invalid_audience(athena_options: AthenaOptions) -> None:
7575

7676
credential_helper = CredentialHelper(
7777
client_id=client_id,
78-
client_secret=invalid_client_secret,
78+
client_secret=client_secret,
7979
auth_url=auth_url,
8080
audience=audience,
8181
)

tests/functional/test_invalid_static_token_auth.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ async def test_platform_token_is_rejected(
6161
@pytest.mark.asyncio
6262
@pytest.mark.functional
6363
async def test_expired_token_is_rejected(athena_options: AthenaOptions) -> None:
64-
"""Test that a standard Resolver platform token is rejected.
65-
66-
Only static tokens generated for Athena access should be accepted."""
64+
"""Test that an expired token is rejected."""
6765
load_dotenv()
6866
platform_token = os.environ["ATHENA_TEST_EXPIRED_TOKEN"]
6967
channel = create_channel(athena_options.host, platform_token)

0 commit comments

Comments
 (0)