Skip to content

Commit

Permalink
update values used in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ohmayr committed Jul 16, 2024
1 parent 8602010 commit 21a633e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_credentials_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_credentials_constructor():
@pytest.mark.asyncio
async def test_before_request():
credentials = CredentialsImpl()
request = "token"
request = "water"
headers = {}
credentials.token = "orchid"

Expand All @@ -39,7 +39,7 @@ async def test_before_request():
assert headers["authorization"] == "Bearer orchid"
assert "x-allowed-locations" not in headers

request = "token2"
request = "earth"
headers = {}

# Second call shouldn't affect token or headers.
Expand All @@ -52,7 +52,7 @@ async def test_before_request():
@pytest.mark.asyncio
async def test_static_credentials_before_request():
static_creds = credentials.StaticCredentials(token="orchid")
request = "token"
request = "water"
headers = {}

# before_request should not affect the value of the token.
Expand All @@ -61,7 +61,7 @@ async def test_static_credentials_before_request():
assert headers["authorization"] == "Bearer orchid"
assert "x-allowed-locations" not in headers

request = "token2"
request = "earth"
headers = {}

# Second call shouldn't affect token or headers.
Expand All @@ -74,7 +74,7 @@ async def test_static_credentials_before_request():
@pytest.mark.asyncio
async def test_static_credentials_refresh():
static_creds = credentials.StaticCredentials(token="orchid")
request = "token"
request = "earth"

with pytest.raises(NotImplementedError) as exc:
await static_creds.refresh(request)
Expand Down

0 comments on commit 21a633e

Please sign in to comment.