Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
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.pyindex 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 Falseassert len(errors) == 1assert errors[0]["code"] == AccountErrorCode.JWT_INVALID_TOKEN.name