Skip to content

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

Add test for split mutations for files

fowczarek75d916e1af7e
diff --git a/tests/api/test_account.py b/tests/api/test_account.py
index 72744f7657..e9b044c1f8 100644
--- a/tests/api/test_account.py
+++ b/tests/api/test_account.py
@@ -17,9 +17,9 @@ from saleor.account import events as account_events
from saleor.account.models import Address, User
from saleor.account.utils import get_random_avatar
from saleor.checkout import AddressType
-from saleor.graphql.account.mutations import (
+from saleor.graphql.account.mutations.base import SetPassword
+from saleor.graphql.account.mutations.staff import (
CustomerDelete,
- SetPassword,
StaffDelete,
StaffUpdate,
UserDelete,
@@ -1887,7 +1887,10 @@ def test_user_avatar_update_mutation(monkeypatch, staff_api_client, media_root):
mock_create_thumbnails = Mock(return_value=None)
monkeypatch.setattr(
- ("saleor.graphql.account.mutations." "create_user_avatar_thumbnails.delay"),
+ (
+ "saleor.graphql.account.mutations.staff."
+ "create_user_avatar_thumbnails.delay"
+ ),
mock_create_thumbnails,
)