Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add assert to check if isValid is equal to False

Maciej Korycinski3672ccd3e9c1
diff --git a/saleor/graphql/account/tests/mutations/test_token_verify.py b/saleor/graphql/account/tests/mutations/test_token_verify.py
index e8ea4be256..e826f8c164 100644
--- a/saleor/graphql/account/tests/mutations/test_token_verify.py
+++ b/saleor/graphql/account/tests/mutations/test_token_verify.py
@@ -48,6 +48,6 @@ def test_verify_token_invalidated_by_user(api_client, customer_user):
data = content["data"]["tokenVerify"]
errors = data["accountErrors"]
- assert not data["isValid"]
+ assert data["isValid"] is False
assert len(errors) == 1
assert errors[0]["code"] == AccountErrorCode.JWT_INVALID_TOKEN.name