Skip to content

Commit 680bf72

Browse files
authored
Default camelcase errors (#968)
1 parent c79b12b commit 680bf72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

graphene_django/forms/tests/test_mutation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ class PetMutation(DjangoModelFormMutation):
7878
class Meta:
7979
form_class = ExtraPetForm
8080

81-
result = PetMutation.mutate_and_get_payload(None, None)
82-
assert {f.field for f in result.errors} == {"name", "age", "test_field"}
83-
graphene_settings.CAMELCASE_ERRORS = True
8481
result = PetMutation.mutate_and_get_payload(None, None)
8582
assert {f.field for f in result.errors} == {"name", "age", "testField"}
83+
graphene_settings.CAMELCASE_ERRORS = False
84+
result = PetMutation.mutate_and_get_payload(None, None)
85+
assert {f.field for f in result.errors} == {"name", "age", "test_field"}
8686

8787

8888
class MockQuery(ObjectType):

graphene_django/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"RELAY_CONNECTION_ENFORCE_FIRST_OR_LAST": False,
3535
# Max items returned in ConnectionFields / FilterConnectionFields
3636
"RELAY_CONNECTION_MAX_LIMIT": 100,
37-
"CAMELCASE_ERRORS": False,
37+
"CAMELCASE_ERRORS": True,
3838
# Set to True to enable v3 naming convention for choice field Enum's
3939
"DJANGO_CHOICE_FIELD_ENUM_V3_NAMING": False,
4040
"DJANGO_CHOICE_FIELD_ENUM_CUSTOM_NAME": None,

0 commit comments

Comments
 (0)