diff --git a/tests/test_encrypted_cookie_storage.py b/tests/test_encrypted_cookie_storage.py index c5cdfc98..bd7d5f5c 100644 --- a/tests/test_encrypted_cookie_storage.py +++ b/tests/test_encrypted_cookie_storage.py @@ -37,7 +37,7 @@ def create_app( def decrypt(fernet: Fernet, cookie_value: str) -> Dict[str, Any]: - assert isinstance(cookie_value, str) + assert type(cookie_value) == str # noqa: E721 cookie_value = fernet.decrypt(cookie_value.encode("utf-8")).decode("utf-8") return cast(Dict[str, Any], json.loads(cookie_value)) diff --git a/tests/test_nacl_storage.py b/tests/test_nacl_storage.py index 594f54e7..61e941d8 100644 --- a/tests/test_nacl_storage.py +++ b/tests/test_nacl_storage.py @@ -44,7 +44,7 @@ def create_app( def decrypt(secretbox: nacl.secret.SecretBox, cookie_value: str) -> Any: - assert isinstance(cookie_value, str) + assert type(cookie_value) == str # noqa: E721 return json.loads( secretbox.decrypt(cookie_value.encode("utf-8"), encoder=Base64Encoder).decode( "utf-8"