mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-03-03 11:15:46 +03:00
Default camelcase errors (#968)
This commit is contained in:
parent
c79b12b5a3
commit
680bf72871
|
@ -78,11 +78,11 @@ def test_mutation_error_camelcased(pet_type, graphene_settings):
|
|||
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"}
|
||||
|
||||
|
||||
class MockQuery(ObjectType):
|
||||
|
|
|
@ -34,7 +34,7 @@ DEFAULTS = {
|
|||
"RELAY_CONNECTION_ENFORCE_FIRST_OR_LAST": False,
|
||||
# Max items returned in ConnectionFields / FilterConnectionFields
|
||||
"RELAY_CONNECTION_MAX_LIMIT": 100,
|
||||
"CAMELCASE_ERRORS": False,
|
||||
"CAMELCASE_ERRORS": True,
|
||||
# Set to True to enable v3 naming convention for choice field Enum's
|
||||
"DJANGO_CHOICE_FIELD_ENUM_V3_NAMING": False,
|
||||
"DJANGO_CHOICE_FIELD_ENUM_CUSTOM_NAME": None,
|
||||
|
|
Loading…
Reference in New Issue
Block a user