From 176e84d6d0f4952e429e0218c8f7a72b9c86568b Mon Sep 17 00:00:00 2001 From: swist Date: Tue, 1 Oct 2019 14:13:15 +0100 Subject: [PATCH] Default CAMELCASE_ERRORS to True (cherry picked from commit 87daade8a54ef6297ce3263c8e2f4ad8722796f9) --- graphene_django/forms/tests/test_mutation.py | 6 +++--- graphene_django/settings.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/graphene_django/forms/tests/test_mutation.py b/graphene_django/forms/tests/test_mutation.py index 2de511381..2b3232f6e 100644 --- a/graphene_django/forms/tests/test_mutation.py +++ b/graphene_django/forms/tests/test_mutation.py @@ -51,12 +51,12 @@ class PetMutation(DjangoModelFormMutation): class Meta: form_class = ExtraPetForm - result = PetMutation.mutate_and_get_payload(None, None) - assert {f.field for f in result.errors} == {"name", "age", "test_field"} - graphene_settings.CAMELCASE_ERRORS = True result = PetMutation.mutate_and_get_payload(None, None) assert {f.field for f in result.errors} == {"name", "age", "testField"} graphene_settings.CAMELCASE_ERRORS = False + result = PetMutation.mutate_and_get_payload(None, None) + assert {f.field for f in result.errors} == {"name", "age", "test_field"} + graphene_settings.CAMELCASE_ERRORS = True class ModelFormMutationTests(TestCase): diff --git a/graphene_django/settings.py b/graphene_django/settings.py index af6389056..8d67d6873 100644 --- a/graphene_django/settings.py +++ b/graphene_django/settings.py @@ -35,7 +35,7 @@ "RELAY_CONNECTION_ENFORCE_FIRST_OR_LAST": False, # Max items returned in ConnectionFields / FilterConnectionFields "RELAY_CONNECTION_MAX_LIMIT": 100, - "CAMELCASE_ERRORS": False, + "CAMELCASE_ERRORS": True, } if settings.DEBUG: