We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb0825 commit 161f198Copy full SHA for 161f198
graphene/core/tests/test_schema.py
@@ -104,6 +104,21 @@ def test_schema_no_query():
104
assert 'define a base query type' in str(excinfo)
105
106
107
+def test_auto_camelcase_off():
108
+ schema = Schema(name='My own schema', auto_camelcase=False)
109
+
110
+ class Query(ObjectType):
111
+ test_field = String(resolver=lambda *_: 'Dog')
112
113
+ schema.query = Query
114
115
+ query = "query {test_field}"
116
+ expected = {"test_field": "Dog"}
117
118
+ result = graphql(schema.schema, query, root_value=Query(object()))
119
+ assert not result.errors
120
+ assert result.data == expected
121
122
def test_schema_register():
123
schema = Schema(name='My own schema')
124
0 commit comments