Skip to content

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

Fix getting error codes in tests

Marcin Gębala24ae47df4443
diff --git a/tests/api/test_account.py b/tests/api/test_account.py
index 69b97b539b..5489702e39 100644
--- a/tests/api/test_account.py
+++ b/tests/api/test_account.py
@@ -1305,6 +1305,10 @@ STAFF_CREATE_MUTATION = """
errors {
field
message
+ }
+ accountErrors {
+ field
+ message
code
}
user {
@@ -1501,6 +1505,10 @@ def test_staff_update_doesnt_change_existing_avatar(
errors {
field
message
+ }
+ accountErrors {
+ field
+ message
code
}
}