Skip to content

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

Remove assertion of a error message in test

Michał Sipa2b66d288953f
diff --git a/tests/api/test_core.py b/tests/api/test_core.py
index dbd8e82825..4d04aab282 100644
--- a/tests/api/test_core.py
+++ b/tests/api/test_core.py
@@ -325,10 +325,6 @@ def test_create_token_invalid_password(api_client, customer_user):
variables = {"email": customer_user.email, "password": "wrongpassword"}
response = api_client.post_graphql(MUTATION_CREATE_TOKEN, variables)
content = get_graphql_content(response)
- assert (
- content["data"]["tokenCreate"]["errors"][0]["message"]
- == "Please, enter valid credentials"
- )
assert (
content["data"]["tokenCreate"]["accountErrors"][0]["code"]
== AccountErrorCode.INVALID_CREDENTIALS.value.upper()
@@ -340,10 +336,6 @@ def test_create_token_invalid_email(api_client, customer_user):
variables = {"email": "wrongemail", "password": "wrongpassword"}
response = api_client.post_graphql(MUTATION_CREATE_TOKEN, variables)
content = get_graphql_content(response)
- assert (
- content["data"]["tokenCreate"]["errors"][0]["message"]
- == "Please, enter valid credentials"
- )
assert (
content["data"]["tokenCreate"]["accountErrors"][0]["code"]
== AccountErrorCode.INVALID_CREDENTIALS.value.upper()