@@ -41,7 +41,7 @@ async def test_invalid_secret(athena_options: AthenaOptions) -> None:
4141async 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
6666async 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 )
0 commit comments