Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Mute confusing PermissionDenied logs (#8208)
Mateusz Grzyb54dd7446d250
diff --git a/saleor/graphql/tests/fixtures.py b/saleor/graphql/tests/fixtures.pyindex 0951c3ae14..f11a70b547 100644--- a/saleor/graphql/tests/fixtures.py+++ b/saleor/graphql/tests/fixtures.py@@ -1,5 +1,6 @@import jsonimport logging+from unittest import mockfrom unittest.mock import Mockimport graphene@@ -93,7 +94,8 @@ class ApiClient(Client):if permissions:if check_no_permissions:- response = super().post(API_PATH, data, **kwargs)+ with mock.patch("saleor.graphql.views.handled_errors_logger"):+ response = super().post(API_PATH, data, **kwargs)assert_no_permission(response)if self.app:self.app.permissions.add(*permissions)