Skip to content

Commit 87daade

Browse files
committed
Default CAMELCASE_ERRORS to True
1 parent 651d3eb commit 87daade

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
@@ -51,12 +51,12 @@ class PetMutation(DjangoModelFormMutation):
5151
class Meta:
5252
form_class = ExtraPetForm
5353

54-
result = PetMutation.mutate_and_get_payload(None, None)
55-
assert {f.field for f in result.errors} == {"name", "age", "test_field"}
56-
graphene_settings.CAMELCASE_ERRORS = True
5754
result = PetMutation.mutate_and_get_payload(None, None)
5855
assert {f.field for f in result.errors} == {"name", "age", "testField"}
5956
graphene_settings.CAMELCASE_ERRORS = False
57+
result = PetMutation.mutate_and_get_payload(None, None)
58+
assert {f.field for f in result.errors} == {"name", "age", "test_field"}
59+
graphene_settings.CAMELCASE_ERRORS = True
6060

6161

6262
class ModelFormMutationTests(TestCase):

graphene_django/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"RELAY_CONNECTION_ENFORCE_FIRST_OR_LAST": False,
3636
# Max items returned in ConnectionFields / FilterConnectionFields
3737
"RELAY_CONNECTION_MAX_LIMIT": 100,
38-
"CAMELCASE_ERRORS": False,
38+
"CAMELCASE_ERRORS": True,
3939
}
4040

4141
if settings.DEBUG:

0 commit comments

Comments
 (0)