From 529047eebeee85793a669c2c2bc1773560f1668c Mon Sep 17 00:00:00 2001 From: Benedikt Volkmer Date: Mon, 19 Aug 2024 17:11:46 +0200 Subject: [PATCH] Fix linter errors E721: replace == with is --- tests/test_clients_facebook.py | 2 +- tests/test_clients_github.py | 2 +- tests/test_oauth2.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_clients_facebook.py b/tests/test_clients_facebook.py index 2225432..d78e101 100644 --- a/tests/test_clients_facebook.py +++ b/tests/test_clients_facebook.py @@ -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 diff --git a/tests/test_clients_github.py b/tests/test_clients_github.py index bb18e29..2876133 100644 --- a/tests/test_clients_github.py +++ b/tests/test_clients_github.py @@ -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 diff --git a/tests/test_oauth2.py b/tests/test_oauth2.py index 2246628..4bae710 100644 --- a/tests/test_oauth2.py +++ b/tests/test_oauth2.py @@ -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 @@ -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