Skip to content

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

Remove TestClass warrnings

fowczarekd43678f40943
diff --git a/tests/api/test_base_mutation.py b/tests/api/test_base_mutation.py
index 7e3454a0b3..a75b40b415 100644
--- a/tests/api/test_base_mutation.py
+++ b/tests/api/test_base_mutation.py
@@ -27,21 +27,21 @@ class Mutation(BaseMutation):
return Mutation(name=product.name)
-class TestErrorCode(Enum):
+class ErrorCodeTest(Enum):
INVALID = "invalid"
-TestErrorCode = graphene.Enum.from_enum(TestErrorCode)
+ErrorCodeTest = graphene.Enum.from_enum(ErrorCodeTest)
-class TestError(Error):
- code = TestErrorCode()
+class ErrorTest(Error):
+ code = ErrorCodeTest()
class MutationWithCustomErrors(Mutation):
class Meta:
description = "Base mutation with custom errors"
- error_type_class = Error
+ error_type_class = ErrorTest
error_type_field = "custom_errors"