Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
E721: replace == with is
  • Loading branch information
bvolkmer authored and frankie567 committed Aug 19, 2024
1 parent a1b37ae commit 529047e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_clients_facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def test_get_long_lived_access_token(self, load_mock, get_respx_call_args)
assert f"client_id={CLIENT_ID}" in content
assert f"client_secret={CLIENT_SECRET}" in content

assert type(access_token) == OAuth2Token
assert type(access_token) is OAuth2Token
assert "access_token" in access_token
assert "token_type" in access_token
assert access_token.is_expired() is False
Expand Down
2 changes: 1 addition & 1 deletion tests/test_clients_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def test_refresh_token(self, load_mock, get_respx_call_args):
assert "client_id=CLIENT_ID" in content
assert "client_secret=CLIENT_SECRET" in content

assert type(access_token) == OAuth2Token
assert type(access_token) is OAuth2Token
assert "access_token" in access_token
assert "token_type" in access_token
assert access_token.is_expired() is False
Expand Down
4 changes: 2 additions & 2 deletions tests/test_oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async def test_get_access_token(
assert f"client_id={CLIENT_ID}" in content
assert f"client_secret={CLIENT_SECRET}" in content

assert type(access_token) == OAuth2Token
assert type(access_token) is OAuth2Token
assert "access_token" in access_token
assert "token_type" in access_token
assert access_token.is_expired() is False
Expand Down Expand Up @@ -245,7 +245,7 @@ async def test_refresh_token(
assert f"client_id={CLIENT_ID}" in content
assert f"client_secret={CLIENT_SECRET}" in content

assert type(access_token) == OAuth2Token
assert type(access_token) is OAuth2Token
assert "access_token" in access_token
assert "token_type" in access_token
assert access_token.is_expired() is False
Expand Down

0 comments on commit 529047e

Please sign in to comment.